mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 23:45:09 -04:00
Fix readability-implicit-bool-cast issues using nullptr
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user