]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
minor update
authorDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 18 Jul 2023 15:10:23 +0000 (17:10 +0200)
committerDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 18 Jul 2023 15:10:23 +0000 (17:10 +0200)
src/SalomeApprc_tool/SalomeApprc_tool.cxx

index 99003945f4b5235f4fdeea01ae3523d28bc12fde..18e7992ed1cb84c77c00a680f18535811d4939d8 100644 (file)
@@ -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;
 }