aboutsummaryrefslogtreecommitdiff
path: root/docs/styleguide-cpp.md
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-04-07 16:29:09 +0200
committer GitHub <noreply@github.com>2023-04-07 16:29:09 +0200
commit21aeaadf332d1a0d874f2c3850944fbdc6e64ff1 (patch)
tree8bb75b6bfc1be4717043eeb46b161ff86c5aaf03 /docs/styleguide-cpp.md
parent0c110a5de255d7fbddf77b549cf019dcfef88751 (diff)
Logo on Mainmenu + icon imports + whitespace cleanup (#82)
* Whitespace cleanup * Icon import files * Logo on main menu.
Diffstat (limited to 'docs/styleguide-cpp.md')
-rw-r--r--docs/styleguide-cpp.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/styleguide-cpp.md b/docs/styleguide-cpp.md
index 69471f5..6440314 100644
--- a/docs/styleguide-cpp.md
+++ b/docs/styleguide-cpp.md
@@ -1,4 +1,4 @@
-# OpenVic2 C++ Style Guidelines
+# OpenVic2 C++ Style Guidelines
## Table of Contents
1. [Why Style?](styleguide-cpp.md#1-why-style)
@@ -169,7 +169,7 @@ Source code files should adhere to the following:
longArgumentNameOne, longArgumentNameTwo, longArgumentNameThree,
longArgumentNameFour, longArgumentNameFive, longArgumentNameSix,
longArgumentNameSeven, longArgumentNameEight);
-
+
//Incorrect
callingAFunctionWithAVeryLongNameAndManyArguments(longArgumentNameOne, longArgumentNameTwo, longArgumentNameThree, longArgumentNameFour, longArgumentNameFive, longArgumentNameSix, longArgumentNameSeven, longArgumentNameEight);
```
@@ -255,7 +255,7 @@ Source code files should adhere to the following:
- For constant values that are computable at compile-time, use `constexpr` instead of the `const` keyword
```c++
//Correct
- constexpr size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;
+ constexpr size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;
//Incorrect
const size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;