commsfwsupport/commselements/factories/inc/factorynotify.h
branchRCL_3
changeset 24 00c6709d25aa
parent 0 dfb7c4ff071f
child 25 9d7ce34704c8
--- a/commsfwsupport/commselements/factories/inc/factorynotify.h	Thu Jul 15 20:01:43 2010 +0300
+++ b/commsfwsupport/commselements/factories/inc/factorynotify.h	Thu Aug 19 11:05:47 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 <class TCLIENT>
-void TFactoryNotify<TCLIENT>::Notification(TAny* aThis, TDesC8& aInfo)
+void TFactoryNotify<TCLIENT>::Notification(TAny* aThis, const TDesC8& aInfo)
 	{
 	TCLIENT* me = (TCLIENT*)aThis;
 	me->InterfaceStateChangeNotification(aInfo);