summaryrefslogtreecommitdiffstats
path: root/src/modules/UserBackendMysql/Module.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/UserBackendMysql/Module.h')
-rw-r--r--src/modules/UserBackendMysql/Module.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/UserBackendMysql/Module.h b/src/modules/UserBackendMysql/Module.h
index 31f6692..96be5a7 100644
--- a/src/modules/UserBackendMysql/Module.h
+++ b/src/modules/UserBackendMysql/Module.h
@@ -22,8 +22,7 @@
#include "UserBackendMysql.h"
-#include <Server/Application.h>
-#include <Server/UserManager.h>
+#include <Common/UserManager.h>
#include <Common/Module.h>
namespace Mad {
@@ -38,17 +37,11 @@ class Module : public Common::Module {
public:
Module(Common::Application *application0) : application(application0), backend(new UserBackendMysql(application)) {
- Server::Application *app = dynamic_cast<Server::Application*>(application);
-
- if(app)
- app->getUserManager()->registerBackend(backend);
+ application->getUserManager()->registerBackend(backend);
}
virtual ~Module() {
- Server::Application *app = dynamic_cast<Server::Application*>(application);
-
- if(app)
- app->getUserManager()->unregisterBackend(backend);
+ application->getUserManager()->unregisterBackend(backend);
}
};