Removed set but unused variable to fix -Wunused-but-set-variable warnings.
This commit is contained in:
parent
d2efdc34ee
commit
5c16717f8a
@ -92,7 +92,6 @@ QScriptValue constructIconClass(QScriptEngine *eng)
|
|||||||
{
|
{
|
||||||
QScriptValue proto = qScriptValueFromValue(eng, QIcon());
|
QScriptValue proto = qScriptValueFromValue(eng, QIcon());
|
||||||
QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter;
|
QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter;
|
||||||
QScriptValue::PropertyFlags setter = QScriptValue::PropertySetter;
|
|
||||||
proto.setProperty("addPixmap", eng->newFunction(addPixmap));
|
proto.setProperty("addPixmap", eng->newFunction(addPixmap));
|
||||||
proto.setProperty("addFile", eng->newFunction(addFile));
|
proto.setProperty("addFile", eng->newFunction(addFile));
|
||||||
proto.setProperty("null", eng->newFunction(isNull), getter);
|
proto.setProperty("null", eng->newFunction(isNull), getter);
|
||||||
|
@ -68,7 +68,6 @@ QScriptValue constructQPixmapClass(QScriptEngine *eng)
|
|||||||
{
|
{
|
||||||
QScriptValue proto = qScriptValueFromValue(eng, QPixmap());
|
QScriptValue proto = qScriptValueFromValue(eng, QPixmap());
|
||||||
QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter;
|
QScriptValue::PropertyFlags getter = QScriptValue::PropertyGetter;
|
||||||
QScriptValue::PropertyFlags setter = QScriptValue::PropertySetter;
|
|
||||||
proto.setProperty("null", eng->newFunction(null), getter);
|
proto.setProperty("null", eng->newFunction(null), getter);
|
||||||
proto.setProperty("rect", eng->newFunction(rect), getter);
|
proto.setProperty("rect", eng->newFunction(rect), getter);
|
||||||
proto.setProperty("scaled", eng->newFunction(scaled));
|
proto.setProperty("scaled", eng->newFunction(scaled));
|
||||||
|
Loading…
Reference in New Issue
Block a user