|
|
|
@ -97,6 +97,8 @@ The use of `nullptr` is preferred over the use of `0` or `NULL`.
|
|
|
|
|
For Qt containers it is better to use Qt's own `foreach`. For all other containers, the
|
|
|
|
|
range-based `for` syntax introduced with C++11 is preferred ([see this blog post][1]).
|
|
|
|
|
|
|
|
|
|
When reimplementing a virtual method, always add the `override` keyword.
|
|
|
|
|
|
|
|
|
|
Try to keep your code const correct. Declare methods const if they don't mutate the
|
|
|
|
|
object, and use const variables. It improves safety, and also makes it easier to
|
|
|
|
|
understand the code.
|
|
|
|
@ -122,4 +124,4 @@ Use `cDebug()` and `cLog` from `utils/Logger.h`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[1]: http://blog.qt.digia.com/blog/2011/05/26/cpp0x-in-qt/
|
|
|
|
|
[2]: http://qt-project.org/wiki/New_Signal_Slot_Syntax
|
|
|
|
|
[2]: http://qt-project.org/wiki/New_Signal_Slot_Syntax
|
|
|
|
|