summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppsourceprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/cppsourceprocessor.cpp')
-rw-r--r--src/plugins/cppeditor/cppsourceprocessor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cppsourceprocessor.cpp b/src/plugins/cppeditor/cppsourceprocessor.cpp
index f3c6dce913..66cca58a0f 100644
--- a/src/plugins/cppeditor/cppsourceprocessor.cpp
+++ b/src/plugins/cppeditor/cppsourceprocessor.cpp
@@ -3,12 +3,13 @@
#include "cppsourceprocessor.h"
+#include "cppeditortr.h"
#include "cppmodelmanager.h"
#include "cpptoolsreuse.h"
#include <coreplugin/editormanager/editormanager.h>
-#include <utils/fileutils.h>
+#include <utils/filepath.h>
#include <utils/hostosinfo.h>
#include <utils/qtcassert.h>
#include <utils/textfileformat.h>
@@ -65,16 +66,14 @@ inline QByteArray generateFingerPrint(const QList<CPlusPlus::Macro> &definedMacr
inline Message messageNoSuchFile(Document::Ptr &document, const FilePath &filePath, unsigned line)
{
- const QString text = QCoreApplication::translate(
- "CppSourceProcessor", "%1: No such file or directory").arg(filePath.displayName());
+ const QString text = Tr::tr("%1: No such file or directory").arg(filePath.displayName());
return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text);
}
inline Message messageNoFileContents(Document::Ptr &document, const FilePath &filePath,
unsigned line)
{
- const QString text = QCoreApplication::translate(
- "CppSourceProcessor", "%1: Could not get file contents").arg(filePath.displayName());
+ const QString text = Tr::tr("%1: Could not get file contents").arg(filePath.displayName());
return Message(Message::Warning, document->filePath(), line, /*column =*/ 0, text);
}