Require '#pragma once' in new code

This commit is contained in:
Vladimir Golovnev (Glassez) 2018-01-20 12:10:21 +03:00
parent 6470f9acb9
commit 247b93e8ec
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -240,7 +240,23 @@ Example:
```
### 9. Misc. ###
### 9. Include guard. ###
`#pragma once` should be used instead of "include guard" in new code:
```c++
// examplewidget.h
#pragma once
#include <QWidget>
class ExampleWidget : public QWidget
{
// (some code omitted)
};
```
### 10. Misc. ###
* Line breaks for long lines with operation: