diff options
| author | Laurent Montel <[email protected]> | 2019-09-08 09:33:41 +0200 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2019-09-08 09:33:41 +0200 |
| commit | 81065795b78e06ec679ec0589fba7082e777ef2a (patch) | |
| tree | 67acbba969c750a69734326179815474be25f42b /src/views/renamedialog.cpp | |
| parent | dfe713edf0c3b0b44ff18c19ebd4d616a9004f48 (diff) | |
GIT_SILENT: minor qstring optimization
Diffstat (limited to 'src/views/renamedialog.cpp')
| -rw-r--r-- | src/views/renamedialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp index 5d329c3ce..96068564d 100644 --- a/src/views/renamedialog.cpp +++ b/src/views/renamedialog.cpp @@ -188,7 +188,7 @@ void RenameDialog::slotAccepted() void RenameDialog::slotTextChanged(const QString& newName) { - bool enable = !newName.isEmpty() && (newName != QLatin1String("..")) && (newName != QLatin1String(".")); + bool enable = !newName.isEmpty() && (newName != QLatin1String("..")) && (newName != QLatin1Char('.')); if (enable && !m_renameOneItem) { const int count = newName.count(QLatin1Char('#')); if (count == 0) { |
