Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c06ca69a
Commit
c06ca69a
authored
Apr 14, 2011
by
hjk
Browse files
coding style: prefer 'class' over 'struct' for consistency reasons
parent
afdf1e69
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/api/coding-style.qdoc
View file @
c06ca69a
...
...
@@ -440,8 +440,15 @@
protected, private. The public section is interesting for every
user of the class. The private section is only of interest for the
implementors of the class (you).
\o Avoid declaring global objects in the declaration file of the class.
If the same variable is used for all objects, use a static member.
\o Use \c{class} instead of \c{struct}. Some compilers mangle that
difference into the symbol names and spit out warnings if a struct
declaration is followed by a class definition. To avoid ongoing
changes from one to the other we declare \c{class} the prefered way.
\endlist
\section3 Declaring Variables
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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