Commit f9690979 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Fix getter for pointers

parent d20b8582
Pipeline #95502 passed with stages
in 12 minutes and 11 seconds
......@@ -23,9 +23,6 @@ std::string makeVarType(const std::string & varType, bool isSetter, bool isConst
std::string restVarName(eraseCharsInStr(replaceStrInStr(varType, "unsigned", ""), " \n\t*&"));
bool isPtr(findInString(varType, '*'));
bool isSimpleType = (restVarName == "char" || restVarName == "short" || restVarName == "int" || restVarName == "float" || restVarName == "double" || restVarName == "bool" || restVarName == "long unsigned int" || restVarName == "size_t" || restVarName == "ssize_t");
std::cerr << "makeVarType : varType = '"<<varType<<"', isSimpleType = " << isSimpleType << ", isPtr = " << isPtr << std::endl;
if(isSimpleType || isPtr){
if(isConst && !isSetter && (!isSimpleType || isPtr)) varTypeName += "const ";
varTypeName += varType;
......@@ -34,14 +31,6 @@ std::string makeVarType(const std::string & varType, bool isSetter, bool isConst
if(isConst) varTypeName += "const ";
varTypeName += varType + " &";
}
// if(isPtr){
// varTypeName += varType;
// if(isRef) varTypeName += " &";
// }else{
// if(isConst) varTypeName += "const ";
// varTypeName += varType + " &";
// }
return varTypeName;
}
......
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