From 5c16717f8a03eafd3b21bb4d36a40ede604486a2 Mon Sep 17 00:00:00 2001 From: Dawit Alemayehu Date: Wed, 8 Jun 2011 13:48:13 -0400 Subject: [PATCH] Removed set but unused variable to fix -Wunused-but-set-variable warnings. --- scriptengines/javascript/simplebindings/icon.cpp | 1 - scriptengines/javascript/simplebindings/pixmap.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/scriptengines/javascript/simplebindings/icon.cpp b/scriptengines/javascript/simplebindings/icon.cpp index 0b5a5f7f9..62055a571 100644 --- a/scriptengines/javascript/simplebindings/icon.cpp +++ b/scriptengines/javascript/simplebindings/icon.cpp @@ -92,7 +92,6 @@ QScriptValue constructIconClass(QScriptEngine *eng) { QScriptValue proto = qScriptValueFromValue(eng, QIcon()); QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter; - QScriptValue::PropertyFlags setter = QScriptValue::PropertySetter; proto.setProperty("addPixmap", eng->newFunction(addPixmap)); proto.setProperty("addFile", eng->newFunction(addFile)); proto.setProperty("null", eng->newFunction(isNull), getter); diff --git a/scriptengines/javascript/simplebindings/pixmap.cpp b/scriptengines/javascript/simplebindings/pixmap.cpp index b1f47a3a7..0719dc7d5 100644 --- a/scriptengines/javascript/simplebindings/pixmap.cpp +++ b/scriptengines/javascript/simplebindings/pixmap.cpp @@ -68,7 +68,6 @@ QScriptValue constructQPixmapClass(QScriptEngine *eng) { QScriptValue proto = qScriptValueFromValue(eng, QPixmap()); QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter; - QScriptValue::PropertyFlags setter = QScriptValue::PropertySetter; proto.setProperty("null", eng->newFunction(null), getter); proto.setProperty("rect", eng->newFunction(rect), getter); proto.setProperty("scaled", eng->newFunction(scaled));