summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodegen_test.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-11-22 11:35:34 +0100
committerhjk <qthjk@ovi.com>2012-11-22 11:36:50 +0100
commit54c1e42e27a349143f8f76d6636ee2aa7ad6129d (patch)
treeb75317693000bbfd227d78f999fdba85d31eb1f7 /src/plugins/cpptools/cppcodegen_test.cpp
parentcb64537a2481eb0d4b7ae779cd9d03a182860d87 (diff)
downloadqt-creator-54c1e42e27a349143f8f76d6636ee2aa7ad6129d.tar.gz
Compile fix after recent QT_NO_CAST... changes
Change-Id: I83564b1618d0d5de949383ae3e5a9633de04e478 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcodegen_test.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/cpptools/cppcodegen_test.cpp b/src/plugins/cpptools/cppcodegen_test.cpp
index 995a5d87f4..2dbbc9aa4a 100644
--- a/src/plugins/cpptools/cppcodegen_test.cpp
+++ b/src/plugins/cpptools/cppcodegen_test.cpp
@@ -68,7 +68,7 @@ void CppToolsPlugin::test_codegen_public_in_empty_class()
"};\n"
"\n";
- Document::Ptr doc = Document::create("public_in_empty_class");
+ Document::Ptr doc = Document::create(QLatin1String("public_in_empty_class"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -108,7 +108,7 @@ void CppToolsPlugin::test_codegen_public_in_nonempty_class()
"};\n" // line 4
"\n";
- Document::Ptr doc = Document::create("public_in_nonempty_class");
+ Document::Ptr doc = Document::create(QLatin1String("public_in_nonempty_class"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -148,7 +148,7 @@ void CppToolsPlugin::test_codegen_public_before_protected()
"};\n"
"\n";
- Document::Ptr doc = Document::create("public_before_protected");
+ Document::Ptr doc = Document::create(QLatin1String("public_before_protected"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -189,7 +189,7 @@ void CppToolsPlugin::test_codegen_private_after_protected()
"};\n"
"\n";
- Document::Ptr doc = Document::create("private_after_protected");
+ Document::Ptr doc = Document::create(QLatin1String("private_after_protected"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -230,7 +230,7 @@ void CppToolsPlugin::test_codegen_protected_in_nonempty_class()
"};\n" // line 4
"\n";
- Document::Ptr doc = Document::create("protected_in_nonempty_class");
+ Document::Ptr doc = Document::create(QLatin1String("protected_in_nonempty_class"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -271,7 +271,7 @@ void CppToolsPlugin::test_codegen_protected_between_public_and_private()
"};\n" // line 5
"\n";
- Document::Ptr doc = Document::create("protected_betwee_public_and_private");
+ Document::Ptr doc = Document::create(QLatin1String("protected_betwee_public_and_private"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -332,7 +332,7 @@ void CppToolsPlugin::test_codegen_qtdesigner_integration()
"\n"
"#endif // MAINWINDOW_H\n";
- Document::Ptr doc = Document::create("qtdesigner_integration");
+ Document::Ptr doc = Document::create(QLatin1String("qtdesigner_integration"));
doc->setUtf8Source(src);
doc->parse();
doc->check();
@@ -429,7 +429,7 @@ void CppToolsPlugin::test_codegen_definition_first_member()
"};\n"
"\n";
- const QByteArray dstText = QString(
+ const QByteArray dstText = QString::fromLatin1(
"\n"
"#include \"%1/file.h\"\n" // line 1
"int x;\n"
@@ -498,7 +498,7 @@ void CppToolsPlugin::test_codegen_definition_last_member()
"};\n"
"\n";
- const QByteArray dstText = QString(
+ const QByteArray dstText = QString::fromLatin1(
"\n"
"#include \"%1/file.h\"\n" // line 1
"int x;\n"
@@ -568,7 +568,7 @@ void CppToolsPlugin::test_codegen_definition_middle_member()
"};\n"
"\n";
- const QByteArray dstText = QString(
+ const QByteArray dstText = QString::fromLatin1(
"\n"
"#include \"%1/file.h\"\n" // line 1
"int x;\n"