src/hbservers/hbdevicedialogappserver/main.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 28 b7da29130b0e
--- a/src/hbservers/hbdevicedialogappserver/main.cpp	Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbservers/hbdevicedialogappserver/main.cpp	Wed Aug 18 10:05:37 2010 +0300
@@ -100,7 +100,6 @@
 }
 #endif // Q_OS_SYMBIAN
 
-#define USE_LOCKER 1
 int main(int arg, char *args[])
 {
     INSTALL_MESSAGE_HANDLER
@@ -163,16 +162,17 @@
     mainWindow.addView(view);
 
 #if defined (Q_OS_SYMBIAN)
+    _LIT(KCaption, "HbDeviceDialogAppServer");
     CEikonEnv* env = CEikonEnv::Static();
 
     if (env) {
         CApaWindowGroupName* wgName = CApaWindowGroupName::NewLC(env->WsSession());
         wgName->SetHidden(ETrue); // hides us from FSW and protects us from OOM FW etc.
         wgName->SetSystem(ETrue); // Allow only application with PowerManagement cap to shut us down
-        wgName->SetCaptionL(_L("HbDeviceDialogAppServer"));
+        wgName->SetCaptionL(KCaption);
         wgName->SetAppUid(KNullUid);
         wgName->SetWindowGroupName(env->RootWin());
-        CleanupStack::PopAndDestroy();       
+        CleanupStack::PopAndDestroy(wgName);
     }
 #endif // Q_OS_SYMBIAN