diff options
| author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-07-21 00:28:18 +0300 |
|---|---|---|
| committer | Orgad Shaneh <orgads@gmail.com> | 2016-07-22 10:12:59 +0000 |
| commit | 516161c875bb059b1b3db534e6575c88050b31b1 (patch) | |
| tree | 35bb8313626484183bf0407f36f471caaf577883 /src/plugins/git/gitutils.cpp | |
| parent | 539e33da0289dcb66f71734ba2ac06f6ec910819 (diff) | |
Git: De-noise
* Remove QLatin1{String|Char} where possible
* Use initializer lists for QStringList
Change-Id: I8479f87f4fc909b5d74d854956885564209538e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/git/gitutils.cpp')
| -rw-r--r-- | src/plugins/git/gitutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitutils.cpp b/src/plugins/git/gitutils.cpp index 8ddfc0072fe..371a00885ec 100644 --- a/src/plugins/git/gitutils.cpp +++ b/src/plugins/git/gitutils.cpp @@ -47,7 +47,7 @@ stash@{2}: On <branch>: <message> bool Stash::parseStashLine(const QString &l) { - const QChar colon = QLatin1Char(':'); + const QChar colon = ':'; const int branchPos = l.indexOf(colon); if (branchPos < 0) return false; @@ -55,7 +55,7 @@ bool Stash::parseStashLine(const QString &l) if (messagePos < 0) return false; // Branch spec - const int onIndex = l.indexOf(QLatin1String("on "), branchPos + 2, Qt::CaseInsensitive); + const int onIndex = l.indexOf("on ", branchPos + 2, Qt::CaseInsensitive); if (onIndex == -1 || onIndex >= messagePos) return false; // Happy! |
