From 0a0dd9ea31d03fcc57f51de724c32e8ca3fe3d3f Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 9 Jan 2023 18:08:30 +0100 Subject: CppCheck: Tr::tr and code cosmetics Change-Id: I5e6583984f7dc94e998df3c20840f2ba2e801ab8 Reviewed-by: Alessandro Portale --- src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp') 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 #include #include -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 -- cgit v1.2.1