|
@@ -386,7 +386,7 @@ engine->globalObject().setProperty("Units", value);
|
386
|
386
|
@ The implementation of these functions is trivial.
|
387
|
387
|
|
388
|
388
|
@<Functions for scripting@>=
|
389
|
|
-QScriptValue Units_convertTemperature(QScriptContext *context, QScriptEngine *engine)
|
|
389
|
+QScriptValue Units_convertTemperature(QScriptContext *context, QScriptEngine *)
|
390
|
390
|
{
|
391
|
391
|
return QScriptValue(Units::convertTemperature(argument<double>(0, context),
|
392
|
392
|
argument<Units::Unit>(1, context),
|
|
@@ -394,7 +394,7 @@ QScriptValue Units_convertTemperature(QScriptContext *context, QScriptEngine *en
|
394
|
394
|
}
|
395
|
395
|
|
396
|
396
|
QScriptValue Units_convertRelativeTemperature(QScriptContext *context,
|
397
|
|
- QScriptEngine *engine)
|
|
397
|
+ QScriptEngine *)
|
398
|
398
|
{
|
399
|
399
|
return QScriptValue(Units::convertRelativeTemperature(
|
400
|
400
|
argument<double>(0, context),
|
|
@@ -402,19 +402,19 @@ QScriptValue Units_convertRelativeTemperature(QScriptContext *context,
|
402
|
402
|
argument<Units::Unit>(2, context)));
|
403
|
403
|
}
|
404
|
404
|
|
405
|
|
-QScriptValue Units_isTemperatureUnit(QScriptContext *context, QScriptEngine *engine)
|
|
405
|
+QScriptValue Units_isTemperatureUnit(QScriptContext *context, QScriptEngine *)
|
406
|
406
|
{
|
407
|
407
|
return QScriptValue(Units::isTemperatureUnit(argument<Units::Unit>(0, context)));
|
408
|
408
|
}
|
409
|
409
|
|
410
|
|
-QScriptValue Units_convertWeight(QScriptContext *context, QScriptEngine *engine)
|
|
410
|
+QScriptValue Units_convertWeight(QScriptContext *context, QScriptEngine *)
|
411
|
411
|
{
|
412
|
412
|
return QScriptValue(Units::convertWeight(argument<double>(0, context),
|
413
|
413
|
argument<Units::Unit>(1, context),
|
414
|
414
|
argument<Units::Unit>(2, context)));
|
415
|
415
|
}
|
416
|
416
|
|
417
|
|
-QScriptValue Units_isWeightUnit(QScriptContext *context, QScriptEngine *engine)
|
|
417
|
+QScriptValue Units_isWeightUnit(QScriptContext *context, QScriptEngine *)
|
418
|
418
|
{
|
419
|
419
|
return QScriptValue(Units::isWeightUnit(argument<Units::Unit>(0, context)));
|
420
|
420
|
}
|