From: Matthias Fuchs Date: Tue, 21 Sep 2010 09:31:04 +0000 (+0000) Subject: Does not use bitwise operators on booleans. Thanks to dfaure for pointing it out. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a934fd59bc038b90175536309abbf50ebdded0d2 Does not use bitwise operators on booleans. Thanks to dfaure for pointing it out. svn path=/trunk/KDE/kdebase/apps/; revision=1177781 --- diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp index f35528074..aae546e7a 100644 --- a/src/views/renamedialog.cpp +++ b/src/views/renamedialog.cpp @@ -132,8 +132,7 @@ void RenameDialog::slotButtonClicked(int button) void RenameDialog::slotTextChanged(const QString &newName) { - bool enable = !newName.isEmpty(); - enable &= (m_renameOneItem ? (newName != m_newName) : newName.contains('#')); + const bool enable = !newName.isEmpty() && (m_renameOneItem ? (newName != m_newName) : newName.contains('#')); enableButtonOk(enable); }