summaryrefslogtreecommitdiff
path: root/src/options/options.h
diff options
context:
space:
mode:
authorTim King <taking@google.com>2015-10-23 15:11:57 -0700
committerTim King <taking@google.com>2015-10-23 19:12:23 -0700
commitc9b7de773cdc53044e5cf4a55d4893d2be476b60 (patch)
tree24b93deaf10909a476cb2d3c0b16e26956a57641 /src/options/options.h
parentdd59444639796fb56b11d3852ca436fc049f39c7 (diff)
Switching Options::current() to return a pointer. This helps avoid undefined behavior due to dereferencing a null pointer in the future.
Diffstat (limited to 'src/options/options.h')
-rw-r--r--src/options/options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options/options.h b/src/options/options.h
index 9656007f4..95c0fc331 100644
--- a/src/options/options.h
+++ b/src/options/options.h
@@ -66,8 +66,8 @@ public:
}
/** Get the current Options in effect */
- static inline Options& current() {
- return *s_current;
+ static inline Options* current() {
+ return s_current;
}
Options();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback