From: DUC ANH HOANG Date: Tue, 18 Jul 2023 15:10:23 +0000 (+0200) Subject: minor update X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ee01ea332383889ec1ff607b51881999881ea97;p=modules%2Fgui.git minor update --- 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; }