File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -400,8 +400,7 @@ struct CommandReturnType0 : public Command {
400
400
protected:
401
401
virtual Value doExecute () {
402
402
assert (getParameterValues ().size () == 0 );
403
- Value res;
404
- res = fptr ();
403
+ Value res (fptr ());
405
404
return res;
406
405
}
407
406
@@ -462,7 +461,7 @@ struct CommandReturnType1 : public Command {
462
461
assert (getParameterValues ().size () == 1 );
463
462
T val = getParameterValues ()[0 ].value ();
464
463
Value res (fptr (val));
465
- return res; // void
464
+ return res;
466
465
}
467
466
468
467
private:
@@ -528,8 +527,8 @@ struct CommandReturnType2 : public Command {
528
527
assert (getParameterValues ().size () == 2 );
529
528
T1 val1 = getParameterValues ()[0 ].value ();
530
529
T2 val2 = getParameterValues ()[1 ].value ();
531
- fptr (val1, val2);
532
- return Value (); // void
530
+ Value res ( fptr (val1, val2) );
531
+ return res;
533
532
}
534
533
535
534
private:
You can’t perform that action at this time.
0 commit comments