Commit f07966d5 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Guilhem Saurel
Browse files

Fix CommandReturnType

parent 675d7e37
......@@ -400,8 +400,7 @@ struct CommandReturnType0 : public Command {
protected:
virtual Value doExecute() {
assert(getParameterValues().size() == 0);
Value res;
res = fptr();
Value res (fptr());
return res;
}
......@@ -462,7 +461,7 @@ protected:
assert(getParameterValues().size() == 1);
T val = getParameterValues()[0].value();
Value res(fptr(val));
return res; // void
return res;
}
private:
......@@ -528,8 +527,8 @@ protected:
assert(getParameterValues().size() == 2);
T1 val1 = getParameterValues()[0].value();
T2 val2 = getParameterValues()[1].value();
fptr(val1, val2);
return Value(); // void
Value res(fptr(val1, val2));
return res;
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment