summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/UserBackendMysql/Module.h13
-rw-r--r--src/modules/UserBackendMysql/UserBackendMysql.h5
2 files changed, 5 insertions, 13 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);
}
};
diff --git a/src/modules/UserBackendMysql/UserBackendMysql.h b/src/modules/UserBackendMysql/UserBackendMysql.h
index aa141da..77f0700 100644
--- a/src/modules/UserBackendMysql/UserBackendMysql.h
+++ b/src/modules/UserBackendMysql/UserBackendMysql.h
@@ -20,8 +20,7 @@
#ifndef MAD_MODULES_USERBACKENDMYSQL_USERBACKENDMYSQL_H_
#define MAD_MODULES_USERBACKENDMYSQL_USERBACKENDMYSQL_H_
-#include <Server/UserBackend.h>
-
+#include <Common/UserBackend.h>
#include <Common/Application.h>
#include <Core/Configurable.h>
@@ -33,7 +32,7 @@ namespace Mad {
namespace Modules {
namespace UserBackendMysql {
-class UserBackendMysql : public Server::UserBackend, private Core::Configurable {
+class UserBackendMysql : public Common::UserBackend, private Core::Configurable {
private:
Common::Application *application;