diff options
author | hjk <hjk@qt.io> | 2023-01-09 18:08:30 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-01-10 10:20:03 +0000 |
commit | 0a0dd9ea31d03fcc57f51de724c32e8ca3fe3d3f (patch) | |
tree | 0638e4eac110678c2d134d4e78aef5974e4f87bc /src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | |
parent | 677fd6ba9a91add241447a067c65f46c61b2af94 (diff) | |
download | qt-creator-0a0dd9ea31d03fcc57f51de724c32e8ca3fe3d3f.tar.gz |
CppCheck: Tr::tr and code cosmetics
Change-Id: I5e6583984f7dc94e998df3c20840f2ba2e801ab8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp')
-rw-r--r-- | src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp b/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp index c85bea45a8..a2f87b8cd8 100644 --- a/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp +++ b/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp @@ -3,16 +3,17 @@ #include "cppcheckdiagnosticsmodel.h" +#include "cppchecktr.h" + #include <debugger/analyzer/diagnosticlocation.h> #include <utils/fsengine/fileiconprovider.h> #include <utils/utilsicons.h> -namespace Cppcheck { -namespace Internal { - using namespace Debugger; +namespace Cppcheck::Internal { + FilePathItem::FilePathItem(const QString &filePath) : m_filePath(filePath) {} @@ -83,7 +84,7 @@ QVariant DiagnosticItem::data(int column, int role) const DiagnosticsModel::DiagnosticsModel(QObject *parent) : BaseModel(parent) { - setHeader({tr("Diagnostic")}); + setHeader({Tr::tr("Diagnostic")}); } void DiagnosticsModel::clear() @@ -116,5 +117,4 @@ void DiagnosticsModel::add(const Diagnostic &diagnostic) filePathItem->appendChild(new DiagnosticItem(diagnostic)); } -} // namespace Internal -} // namespace Cppcheck +} // Cppcheck::Internal |