summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 60f67ff9..dbde8cad 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -135,7 +135,7 @@ void deinitialize()
#endif
// Get rid of persistent data storage
- Storage::deleteInstance();
+ tmwserv::Storage::destroy();
delete logger;
}
@@ -172,13 +172,13 @@ int main(int argc, char *argv[])
session->startListen(connectionHandler, SERVER_PORT);
logger->log("Listening on port %d...", SERVER_PORT);
- Storage *store = Storage::getInstance();
+ tmwserv::Storage& store = tmwserv::Storage::instance();
- std::cout << "Number of accounts on server: " << store->getAccountCount() << std::endl;
+ std::cout << "Number of accounts on server: " << store.getAccountCount() << std::endl;
// Test the database retrieval code
std::cout << "Attempting to retrieve account with username 'nym'" << std::endl;
- Account* acc = store->getAccount("nym");
+ Account* acc = store.getAccount("nym");
if (acc)
{
std::cout << "Account name: " << acc->getName() << std::endl