From 4ee01ea332383889ec1ff607b51881999881ea97 Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 18 Jul 2023 17:10:23 +0200 Subject: [PATCH] minor update --- src/SalomeApprc_tool/SalomeApprc_tool.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SalomeApprc_tool/SalomeApprc_tool.cxx b/src/SalomeApprc_tool/SalomeApprc_tool.cxx index 99003945f..18e7992ed 100644 --- a/src/SalomeApprc_tool/SalomeApprc_tool.cxx +++ b/src/SalomeApprc_tool/SalomeApprc_tool.cxx @@ -35,8 +35,8 @@ int main(int argc, char** argv) salome_version = (QString)argv[1]; } - QApplication *app = new QApplication(argc, argv); - app->setOrganizationName("salome"); + QApplication app(argc, argv); + app.setOrganizationName("salome"); ResMgr.setVersion(salome_version); QString salomemodules(getenv("SALOME_MODULES")); @@ -46,6 +46,5 @@ int main(int argc, char** argv) AddComponents_from_salomemodules(salomemodules); ResMgr.setCurrentFormat("xml"); ResMgr.save(); - delete(app); return 0; } -- 2.39.2