From c3eee2dc997d274fe0fedb4ad25a45bd6ac5b3ce Mon Sep 17 00:00:00 2001 From: bofdahof <172177156+bofdahof@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:31:27 +1000 Subject: [PATCH] Simplify expression --- src/App/Application.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index aefe2ac054..0fe509646e 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -2668,10 +2668,10 @@ void Application::initConfig(int argc, char ** argv) _pConsoleObserverFile = nullptr; // Banner =========================================================== - if (!(mConfig["RunMode"] == "Cmd")) { + if (mConfig["RunMode"] != "Cmd") { // Remove banner if FreeCAD is invoked via the -c command as regular // Python interpreter - if (!(mConfig["Verbose"] == "Strict")) + if (mConfig["Verbose"] != "Strict") Base::Console().Message("%s %s, Libs: %s.%s.%s%sR%s\n%s", mConfig["ExeName"].c_str(), mConfig["ExeVersion"].c_str(), @@ -2797,7 +2797,7 @@ void Application::initApplication() new Base::ScriptProducer( "FreeCADTest", FreeCADTest ); // creating the application - if (!(mConfig["Verbose"] == "Strict")) + if (mConfig["Verbose"] != "Strict") Base::Console().Log("Create Application\n"); Application::_pcSingleton = new Application(mConfig); @@ -3013,7 +3013,7 @@ void Application::LoadParameters() _pcUserParamMngr->SetSerializer(new ParameterSerializer(mConfig["UserParameter"])); try { - if (_pcSysParamMngr->LoadOrCreateDocument() && !(mConfig["Verbose"] == "Strict")) { + if (_pcSysParamMngr->LoadOrCreateDocument() && mConfig["Verbose"] != "Strict") { // Configuration file optional when using as Python module if (!Py_IsInitialized()) { Base::Console().Warning(" Parameter does not exist, writing initial one\n"); @@ -3032,7 +3032,7 @@ void Application::LoadParameters() } try { - if (_pcUserParamMngr->LoadOrCreateDocument() && !(mConfig["Verbose"] == "Strict")) { + if (_pcUserParamMngr->LoadOrCreateDocument() && mConfig["Verbose"] != "Strict") { // The user parameter file doesn't exist. When an alternative parameter file is offered // this will be used. std::map::iterator it = mConfig.find("UserParameterTemplate");