diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-17 23:36:53 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-17 23:36:53 +0200 |
commit | 6c9695d16c157e9119dcf897266e8643e6565213 (patch) | |
tree | 6f96470fb1a56234f18c1561f3b96eb301fffe1c /test/option.cc | |
parent | 851d4fb9db087eeb183f1c1cb5d96829a32e690b (diff) | |
download | cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.tar.gz cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.zip |
enable misc-*,bugprone-* lints
Diffstat (limited to 'test/option.cc')
-rw-r--r-- | test/option.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/option.cc b/test/option.cc index 30b2406..cf80374 100644 --- a/test/option.cc +++ b/test/option.cc @@ -32,11 +32,11 @@ int main() { }; { - option<int> o1; - option<int> o2{::option::none{}}; + const option<int> kO1{}; + const option<int> kO2{::option::none{}}; - assert(!o1.has_value()); - assert(!o2.has_value()); + assert(!kO1.has_value()); + assert(!kO2.has_value()); } // Assume we start test with cnt=0. |