diff options
author | Tim King <taking@google.com> | 2015-10-23 15:11:57 -0700 |
---|---|---|
committer | Tim King <taking@google.com> | 2015-10-23 19:12:23 -0700 |
commit | c9b7de773cdc53044e5cf4a55d4893d2be476b60 (patch) | |
tree | 24b93deaf10909a476cb2d3c0b16e26956a57641 /src/options/options.h | |
parent | dd59444639796fb56b11d3852ca436fc049f39c7 (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.h | 4 |
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(); |