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
10c19676
Commit
10c19676
authored
Aug 01, 2021
by
Pierre Aubert
Browse files
Avoid generation of empty class name
parent
9ac79b93
Pipeline
#130515
passed with stages
in 5 minutes and 15 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/PClassGenerator.cpp
src/PClassGenerator.cpp
+1
-0
No files found.
src/PClassGenerator.cpp
View file @
10c19676
...
...
@@ -30,6 +30,7 @@ bool PClassGenerator::saveFileImplDef(const std::string & baseFileName){
std
::
string
baseToUse
(
""
);
if
(
baseFileName
==
""
){
baseToUse
=
p_className
;}
else
{
baseToUse
=
baseFileName
;}
if
(
baseToUse
==
""
){
return
false
;}
std
::
string
includeName
(
baseToUse
+
".h"
);
std
::
string
sourceName
(
baseToUse
+
".cpp"
);
if
(
p_useTemplate
){
sourceName
=
baseToUse
+
"_impl.h"
;}
...
...
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