From 57dd5916424afc646eb5101cf83e5a70b3cc3cfa Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 20 Mar 2013 19:19:48 +0100 Subject: 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 Reviewed-by: Pierre Rossi --- examples/webkitqml/shared/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3