Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Umbrello
Commits
ef47ab7b
Commit
ef47ab7b
authored
Oct 28, 2019
by
Ralf Habacker
Browse files
cppwriter: Add support for writing abstract methods
CCBUG:413519
parent
4f28aad2
Changes
1
Show whitespace changes
Inline
Side-by-side
umbrello/codegenerators/cpp/cppwriter.cpp
View file @
ef47ab7b
...
...
@@ -1259,8 +1259,11 @@ void CppWriter::writeOperations(UMLClassifier *c, UMLOperationList &oplist, bool
if
(
op
->
getOverride
())
str
+=
QLatin1String
(
" override"
);
if
(
isHeaderMethod
&&
op
->
isAbstract
())
{
str
+=
QLatin1String
(
" = 0;"
);
}
// method body : only gets IF it is not in a header
if
(
isHeaderMethod
&&
!
policyExt
()
->
getOperationsAreInline
())
{
else
if
(
isHeaderMethod
&&
!
policyExt
()
->
getOperationsAreInline
())
{
str
+=
QLatin1Char
(
';'
);
// terminate now
}
else
{
...
...
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