diff -r 81f8547efd4f -r e8e3147d53eb predictivesearch/PcsServer/src/CPcsServer.cpp --- a/predictivesearch/PcsServer/src/CPcsServer.cpp Fri Mar 12 15:41:25 2010 +0200 +++ b/predictivesearch/PcsServer/src/CPcsServer.cpp Mon Mar 15 12:39:26 2010 +0200 @@ -67,7 +67,7 @@ { PRINT ( _L("Enter CPcsServer::ConstructL") ); - pcs = CPcsPluginInterface::NewL(); + iPcs = CPcsPluginInterface::NewL(); // Check if the phone is chinese feature id installed TBool isChineseVariant = IsChineseFeatureInitilizedL(); @@ -79,7 +79,7 @@ // Chinese variant phones. Use Algorithm 2 PRINT ( _L("Enter CPcsServer::ConstructL() - Chinese Variant Phone Algorithm Instantiated") ); TBuf algorithmName(KPcsAlgorithm_Chinese); - pcs->InstantiateAlgorithmL(algorithmName); + iPcs->InstantiateAlgorithmL(algorithmName); } @@ -89,7 +89,7 @@ PRINT ( _L("Enter CPcsServer::ConstructL() - NON-Chinese Variant Phone Algorithm Instantiated") ); TBuf algorithmName(KPcsAlgorithm_NonChinese); // TBuf algorithmName(KPcsAlgorithm_Chinese); - pcs->InstantiateAlgorithmL(algorithmName); + iPcs->InstantiateAlgorithmL(algorithmName); } @@ -103,11 +103,7 @@ CPcsServer::~CPcsServer() { PRINT ( _L("Enter CPcsServer::~CPcsServer") ); - if(pcs) - { - delete pcs; - pcs=NULL; - } + delete iPcs; PRINT ( _L("End CPcsServer::~CPcsServer") ); } @@ -137,7 +133,7 @@ // ---------------------------------------------------------------------------- CPcsPluginInterface* CPcsServer::PluginInterface() { - return pcs; + return iPcs; }; // ----------------------------------------------------------------------------