summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-11-05 05:29:54 +0100
committerGitHub <noreply@github.com>2016-11-05 05:29:54 +0100
commitb4c53b1e59f59812a1788acaeda4ea017bb04ba3 (patch)
treec32bd00268f89b27a14609549487d122fdcd8640 /CONTRIBUTING.md
parentMerge pull request #2142 from mailwl/acu-update (diff)
downloadyuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.gz
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.bz2
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.lz
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.xz
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.zst
yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.zip
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3d6a87651..36fa4b86a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -52,7 +52,7 @@ namespace Example {
// Namespace contents are not indented
// Declare globals at the top
-int g_foo = 0;
+int g_foo{}; // {} can be used to initialize types as 0, false, or nullptr
char* g_some_pointer; // Pointer * and reference & stick to the type name
/// A colorful enum.
@@ -73,7 +73,9 @@ struct Position {
// Use "typename" rather than "class" here
template <typename T>
void FooBar() {
- int some_array[] = {
+ std::string some_string{ "prefer uniform initialization" };
+
+ int some_array[]{
5,
25,
7,