diff -r a365cb779476 -r cf589eb1e31e commsfwsupport/commselements/factories/inc/factorynotify.h --- a/commsfwsupport/commselements/factories/inc/factorynotify.h Fri Sep 17 08:36:26 2010 +0300 +++ b/commsfwsupport/commselements/factories/inc/factorynotify.h Mon Oct 04 02:21:43 2010 +0300 @@ -28,7 +28,7 @@ namespace Factories { -typedef void (*TInterfaceStateChangeFn)( TAny*, TDesC8& aInfo ); +typedef void (*TInterfaceStateChangeFn)( TAny*, const TDesC8& aInfo ); typedef TInt (*TFactoryNotifyFn)( TAny*, AFactoryObject& aObject, CFactoryBase& aFactory ); typedef void (*TAnyFn)(TAny*); @@ -50,7 +50,7 @@ { } - void InterfaceStateChange(TDesC8& aInfo) + void InterfaceStateChange(const TDesC8& aInfo) { if ( Check(1) ) { @@ -89,14 +89,14 @@ */ { public: - static void Notification(TAny* aThis, TDesC8& aInfo); + static void Notification(TAny* aThis, const TDesC8& aInfo); static void NotifyDeletion(TAny* aThis, AFactoryObject& aObject, CFactoryBase& aFactory); static TInt NotifyCreation(TAny* aThis, AFactoryObject& aObject, CFactoryBase& aFactory); }; template -void TFactoryNotify::Notification(TAny* aThis, TDesC8& aInfo) +void TFactoryNotify::Notification(TAny* aThis, const TDesC8& aInfo) { TCLIENT* me = (TCLIENT*)aThis; me->InterfaceStateChangeNotification(aInfo);