Commit 40341a89 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED code cleaning

parent 18b439a3
......@@ -572,7 +572,7 @@ private:
}
// -------------------- declare the interface for QPluginLoader --------------------
Q_DECLARE_INTERFACE(camitk::Action, "TIMC-IMAG.Action/2.1") //TODO use svn version?
Q_DECLARE_INTERFACE(camitk::Action, "TIMC-IMAG.Action/2.1")
#endif // ACTION_H
......
......@@ -58,6 +58,7 @@ void ActionExtension::initResources() {
// -------------------- destructor --------------------
ActionExtension::~ActionExtension() {
// delete all actions one by one
while (!actions.empty()) {
Action* toDelete = actions.takeFirst();
// do not delete the "Quit" action: it is the action that triggers this delete!
......@@ -66,7 +67,7 @@ ActionExtension::~ActionExtension() {
}
}
//delete internationalization instance
// delete internationalization instance
if (translator) {
delete translator;
}
......
......@@ -108,7 +108,7 @@ private:
}
// -------------------- declare the interface for QPluginLoader --------------------
Q_DECLARE_INTERFACE(camitk::ActionExtension, "TIMC-IMAG. Action Extension/2.1") //TODO use variable from CMake?
Q_DECLARE_INTERFACE(camitk::ActionExtension, "TIMC-IMAG. Action Extension/2.1")
#endif //ACTION_EXTENSION_H
......@@ -204,7 +204,7 @@ QString Application::getName() {
// ----------------- quitting --------------------
void Application::quitting() {
// this is connect to the aboutToQuit signal from QApplication
// this is connected to the aboutToQuit signal from QApplication
// it should contain all the code that frees the resources
// delete all actions (they are instantiated when the extension is loaded)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment