From 841914bae85c720b11327b214b36babfd26b6f50 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Thu, 16 Feb 2023 02:27:24 -0300 Subject: [PATCH] print the version by accessing it directly --- src/obelisk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obelisk.cpp b/src/obelisk.cpp index f790ca9..602b692 100644 --- a/src/obelisk.cpp +++ b/src/obelisk.cpp @@ -124,7 +124,7 @@ int main(int argc, char** argv) return EXIT_SUCCESS; break; case 'v' : - std::cout << "obelisk " << (new obelisk::Obelisk())->getVersion() << std::endl; + std::cout << "obelisk " << obelisk::version << std::endl; return EXIT_SUCCESS; break; default :