From 6c9695d16c157e9119dcf897266e8643e6565213 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 17 Aug 2023 23:36:53 +0200 Subject: enable misc-*,bugprone-* lints --- test/option.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/option.cc') 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 o1; - option o2{::option::none{}}; + const option kO1{}; + const option 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. -- cgit v1.2.3