diff --git a/CppCodeGenerator.js b/CppCodeGenerator.js index 8fdd8f4..f7c51e1 100644 --- a/CppCodeGenerator.js +++ b/CppCodeGenerator.js @@ -614,7 +614,7 @@ define(function (require, exports, module) { methodStr += elem.name; methodStr += "(" + inputParamStrings.join(", ") + ")" + " {\n"; if (returnTypeParam.length > 0) { - var returnType = returnTypeParam[0].type; + var returnType = this.getType(returnTypeParam[0]); if (returnType === "boolean" || returnType === "bool") { methodStr += indentLine + "return false;"; } else if (returnType === "int" || returnType === "long" || returnType === "short" || returnType === "byte") {