diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-05 11:43:24 -0400 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-23 14:24:23 +0200 |
commit | bea8fc8e6a9dc71110a90affc34361e96714631f (patch) | |
tree | 43a686e82f73f71b1f05d81eb655d2afb3db36c1 /src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp | |
parent | cadc4b42bacf959258f7d4b19e93d02c02b63449 (diff) | |
download | qt-creator-bea8fc8e6a9dc71110a90affc34361e96714631f.tar.gz |
Cpp{Tools,Editor}: Expect UTF-8 encoded literals
Change-Id: I9843c4163aad3fa3f1bfa33060c76328fc2dc25a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp index 4fd9eae00d..469173a27a 100644 --- a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp +++ b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp @@ -89,7 +89,7 @@ public: // Write source to temprorary file const QString filePath = QDir::tempPath() + QLatin1String("/file.h"); Document::Ptr document = Document::create(filePath); - QVERIFY(writeFile(document->fileName(), sourceWithoutCursorMarker.toLatin1())); + QVERIFY(writeFile(document->fileName(), sourceWithoutCursorMarker.toUtf8())); // Preprocess source Environment env; @@ -145,7 +145,7 @@ void CppToolsPlugin::test_format_pointerdeclaration_in_simpledeclarations() QFETCH(QString, source); QFETCH(QString, reformattedSource); - PointerDeclarationFormatterTestCase(source.toLatin1(), + PointerDeclarationFormatterTestCase(source.toUtf8(), reformattedSource, Document::ParseDeclaration, PointerDeclarationFormatter::RespectCursor); @@ -369,7 +369,7 @@ void CppToolsPlugin::test_format_pointerdeclaration_in_controlflowstatements() QFETCH(QString, source); QFETCH(QString, reformattedSource); - PointerDeclarationFormatterTestCase(source.toLatin1(), + PointerDeclarationFormatterTestCase(source.toUtf8(), reformattedSource, Document::ParseStatement, PointerDeclarationFormatter::RespectCursor); @@ -444,7 +444,7 @@ void CppToolsPlugin::test_format_pointerdeclaration_multiple_declarators() QFETCH(QString, source); QFETCH(QString, reformattedSource); - PointerDeclarationFormatterTestCase(source.toLatin1(), + PointerDeclarationFormatterTestCase(source.toUtf8(), reformattedSource, Document::ParseDeclaration, PointerDeclarationFormatter::RespectCursor); @@ -499,7 +499,7 @@ void CppToolsPlugin::test_format_pointerdeclaration_multiple_matches() QFETCH(QString, source); QFETCH(QString, reformattedSource); - PointerDeclarationFormatterTestCase(source.toLatin1(), + PointerDeclarationFormatterTestCase(source.toUtf8(), reformattedSource, Document::ParseTranlationUnit, PointerDeclarationFormatter::IgnoreCursor); @@ -582,7 +582,7 @@ void CppToolsPlugin::test_format_pointerdeclaration_macros() QFETCH(QString, source); QFETCH(QString, reformattedSource); - PointerDeclarationFormatterTestCase(source.toLatin1(), + PointerDeclarationFormatterTestCase(source.toUtf8(), reformattedSource, Document::ParseTranlationUnit, PointerDeclarationFormatter::RespectCursor); |