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/libs/3rdparty/syntax-highlighting/src | |
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/libs/3rdparty/syntax-highlighting/src')
-rw-r--r-- | src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp index beb1e87797..56b244a8ee 100644 --- a/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp +++ b/src/libs/3rdparty/syntax-highlighting/src/lib/theme.cpp @@ -47,7 +47,7 @@ QString Theme::name() const QString Theme::translatedName() const { - return m_data ? QCoreApplication::instance()->translate("Theme", m_data->name().toUtf8().constData()) : QString(); + return m_data ? QCoreApplication::translate("Theme", m_data->name().toUtf8().constData()) : QString(); } bool Theme::isReadOnly() const |