summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2011-11-27 13:53:34 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2011-11-27 13:53:34 +0800
commit11a57ad4efe1ea400aafae78f8a1ac31c1a7adb8 (patch)
treedf6c5c09d1aaf31ab246c940b0e229b768a84d5d
parent0c60f6fa9ab288ac7ca24be6301a7e5a90b4f931 (diff)
SexyAppFramework: Set the service manager's name to product name
-rw-r--r--osframework/source/SexyAppFramework/SexyAppBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/SexyAppBase.cpp b/osframework/source/SexyAppFramework/SexyAppBase.cpp
index 9d7bba7..d7193c0 100644
--- a/osframework/source/SexyAppFramework/SexyAppBase.cpp
+++ b/osframework/source/SexyAppFramework/SexyAppBase.cpp
@@ -27,6 +27,7 @@
#include "SexyI18n.h"
#include "SexyUtf8.h"
#include "SexyLogManager.h"
+#include "SexyServiceManager.h"
#include <iostream>
#include <fstream>
@@ -3172,6 +3173,7 @@ void SexyAppBase::Init()
LogManager& logMgr = LogManager::getInstance();
if (logMgr.getDefaultTag() == "default")
logMgr.setDefaultTag(StringToLower(mProdName));
+ ServiceManager::getInstance().setName(mProdName);
if (mShutdown)
return;