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
2f7fc795
Commit
2f7fc795
authored
Apr 21, 2021
by
Pierre Aubert
Browse files
Update template class generation
parent
ce355d6f
Pipeline
#116882
passed with stages
in 12 minutes and 45 seconds
Changes
1
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/PClassGenerator.cpp
src/PClassGenerator.cpp
+2
-2
No files found.
src/PClassGenerator.cpp
View file @
2f7fc795
...
...
@@ -307,8 +307,8 @@ void PClassGenerator::saveCopyEqualOperatorImpl(std::ofstream & fs){
fs
<<
" *
\t
@return copied class"
<<
endl
;
fs
<<
"*/"
<<
endl
;
saveTemplateDefinition
(
fs
);
if
(
p_useTemplate
)
fs
<<
"typename "
<<
p_classNameSpace
<<
"::"
;
fs
<<
p_className
<<
" & "
<<
p_classNameSpace
<<
"::operator = (const "
<<
p_classTypeName
<<
" & other){"
<<
endl
;
//
if(p_useTemplate) fs << "typename " << p_classNameSpace << "::";
fs
<<
p_class
Type
Name
<<
" & "
<<
p_classNameSpace
<<
"::operator = (const "
<<
p_classTypeName
<<
" & other){"
<<
endl
;
fs
<<
"
\t
copy"
<<
firstToUpper
(
p_className
)
<<
"(other);"
<<
endl
;
fs
<<
"
\t
return *this;"
<<
endl
;
fs
<<
"}"
<<
endl
;
...
...
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