Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixGenerator
Commits
f9690979
Commit
f9690979
authored
Dec 03, 2020
by
Pierre Aubert
Browse files
Fix getter for pointers
parent
d20b8582
Pipeline
#95502
passed with stages
in 12 minutes and 11 seconds
Changes
1
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
src/saveClassConfig.cpp
src/saveClassConfig.cpp
+0
-11
No files found.
src/saveClassConfig.cpp
View file @
f9690979
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment