aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@digia.com>2014-08-15 10:07:39 +0300
committerSimon Hausmann <simon.hausmann@digia.com>2014-08-15 10:21:41 +0300
commite117b9e7d5ad535ee6fed9a61a747290468665e0 (patch)
tree771ab88e171c65a44f49821482a87bff5b062229 /softwarecontext
parent53a30b4fc02cd522fb15344060565f623a8667ea (diff)
Fix compilation warning on MSVC2013
In constructs like the following: QSGRenderContext */*rc*/ MSVC parses the commented out variable name "rc" after the pointer star as signifying the end of a C-style comment. Do the proper thing and use Q_UNUSED within the function Change-Id: I149ccf10e7db4762adc8510d8cba864171c5db36 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'softwarecontext')
-rw-r--r--softwarecontext/context.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/softwarecontext/context.cpp b/softwarecontext/context.cpp
index 8ea4278645..2bf4e7f0fc 100644
--- a/softwarecontext/context.cpp
+++ b/softwarecontext/context.cpp
@@ -141,8 +141,10 @@ QSGImageNode *Context::createImageNode()
return new ImageNode();
}
-QSGGlyphNode *Context::createGlyphNode(QSGRenderContext */*rc*/, bool /*preferNativeGlyphNode*/)
+QSGGlyphNode *Context::createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode)
{
+ Q_UNUSED(rc);
+ Q_UNUSED(preferNativeGlyphNode);
return new GlyphNode();
}