summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-03-20 19:19:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-25 16:02:22 +0100
commit57dd5916424afc646eb5101cf83e5a70b3cc3cfa (patch)
treefe3091abb34b35d180fbd9380e142c691c513b70
parent64956e77c8b71922df32b0925200940fcb969604 (diff)
downloadqtwebkit-examples-57dd5916424afc646eb5101cf83e5a70b3cc3cfa.tar.gz
Fix the build of the QML examples if C++11 is enabled
The build fails with the following error message: unable to find string literal operator 'operator"" QWEBKIT_EXAMPLE_NAME' Add spaces around the define so that it is not interpreted as an operator expression. Change-Id: I0bdb10ab844441c280a1bd6ffaf75e0e2604f9da Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
-rw-r--r--examples/webkitqml/shared/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webkitqml/shared/main.cpp b/examples/webkitqml/shared/main.cpp
index ac1de3e..ba2cbfa 100644
--- a/examples/webkitqml/shared/main.cpp
+++ b/examples/webkitqml/shared/main.cpp
@@ -43,7 +43,7 @@ int main(int argc, char* argv[])
{
QGuiApplication app(argc,argv);
QQuickView view;
- view.setSource(QUrl("qrc:///"QWEBKIT_EXAMPLE_NAME".qml"));
+ view.setSource(QUrl("qrc:///" QWEBKIT_EXAMPLE_NAME ".qml"));
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.show();
return app.exec();