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));