forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
539e33da02
commit
516161c875
@@ -189,7 +189,7 @@ void GitSubmitEditor::slotDiffSelected(const QList<int> &rows)
|
||||
unmergedFiles.push_back(fileName);
|
||||
} else if (state & StagedFile) {
|
||||
if (state & (RenamedFile | CopiedFile)) {
|
||||
const int arrow = fileName.indexOf(QLatin1String(" -> "));
|
||||
const int arrow = fileName.indexOf(" -> ");
|
||||
if (arrow != -1) {
|
||||
stagedFiles.push_back(fileName.left(arrow));
|
||||
stagedFiles.push_back(fileName.mid(arrow + 4));
|
||||
@@ -198,7 +198,7 @@ void GitSubmitEditor::slotDiffSelected(const QList<int> &rows)
|
||||
}
|
||||
stagedFiles.push_back(fileName);
|
||||
} else if (state == UntrackedFile) {
|
||||
Core::EditorManager::openEditor(m_workingDirectory + QLatin1Char('/') + fileName);
|
||||
Core::EditorManager::openEditor(m_workingDirectory + '/' + fileName);
|
||||
} else {
|
||||
unstagedFiles.push_back(fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user