diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-27 13:12:23 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-27 13:26:07 +0000 |
commit | a3857a996a6892a871f776452289a1520cff9337 (patch) | |
tree | d30d4e40002c29d13bb4421e244c113e59535007 /src/plugins/macros | |
parent | 0cc5ee12c5b41dbe02af11dfd9c91410cf17362d (diff) |
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance
Amends: b2a766a79ac778febff87f0def34cf6d3f4f93e3
Round #2: This time done with Qt Creator's Analyzer, which
found other occurences than run-clang-tidy.py
Change-Id: I479e280c7abcf2d24baccbb0af69ae4bda05198e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/macros')
-rw-r--r-- | src/plugins/macros/texteditormacrohandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/macros/texteditormacrohandler.cpp b/src/plugins/macros/texteditormacrohandler.cpp index 5d9d7cf39a4..3153bbf99ab 100644 --- a/src/plugins/macros/texteditormacrohandler.cpp +++ b/src/plugins/macros/texteditormacrohandler.cpp @@ -97,7 +97,7 @@ bool TextEditorMacroHandler::executeEvent(const MacroEvent ¯oEvent) macroEvent.value(TEXT).toString(), macroEvent.value(AUTOREP).toBool(), macroEvent.value(COUNT).toInt()); - QApplication::instance()->sendEvent(m_currentEditor->widget(), &keyEvent); + QCoreApplication::sendEvent(m_currentEditor->widget(), &keyEvent); return true; } |