Fix readability-implicit-bool-cast issues using nullptr

This commit is contained in:
Kurt Hindenburg
2017-04-21 10:51:31 -04:00
parent 29382cc62e
commit a540e6fdd0
31 changed files with 204 additions and 204 deletions

View File

@@ -189,7 +189,7 @@ const KeyboardTranslator* KeyboardTranslatorManager::defaultTranslator()
// Try to find the default.keytab file if it exists, otherwise
// fall back to the internal hard-coded fallback translator
const KeyboardTranslator* translator = findTranslator(QStringLiteral("default"));
if (!translator) {
if (translator == nullptr) {
translator = _fallbackTranslator;
}
return translator;