From 55bd9677a90e90505cbb19671053775c2cabb7c2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 9 Mar 2022 22:05:14 +0100 Subject: [PATCH] App: [skip ci] fix bug in Metadata::supportsCurrentFreeCAD() clang prints the warning: operator '?:' has lower precedence than '<<'; '<<' will be evaluated first [-Wparentheses] --- src/App/Metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Metadata.cpp b/src/App/Metadata.cpp index 7be5c24a53..692e9b6c0e 100644 --- a/src/App/Metadata.cpp +++ b/src/App/Metadata.cpp @@ -462,7 +462,7 @@ bool App::Metadata::supportsCurrentFreeCAD() const if (fcVersion == Meta::Version()) { std::map& config = App::Application::Config(); std::stringstream ss; - ss << config["BuildVersionMajor"] << "." << config["BuildVersionMinor"] << "." << config["BuildRevision"].empty() ? "0" : config["BuildRevision"]; + ss << config["BuildVersionMajor"] << "." << config["BuildVersionMinor"] << "." << (config["BuildRevision"].empty() ? "0" : config["BuildRevision"]); fcVersion = Meta::Version(ss.str()); }