bluetoothengine/btnotif/btnotifsrv/src/bluetoothnotification.cpp
changeset 70 f5508c13dfe0
parent 57 5ebadcda06cb
child 71 083fd884d7dd
--- a/bluetoothengine/btnotif/btnotifsrv/src/bluetoothnotification.cpp	Wed Oct 13 13:15:31 2010 +0300
+++ b/bluetoothengine/btnotif/btnotifsrv/src/bluetoothnotification.cpp	Tue Oct 19 15:09:34 2010 +0300
@@ -218,21 +218,18 @@
                     TBuf<32> buf;
                     switch (aType) {
                         case TBluetoothDialogParams::EAddress:
-                            _LIT(KAddress,"EAddress");
-                            buf.Append(KAddress); 
+                            buf.Append(_L("EAddress")); 
                             break;
                         case TBluetoothDeviceDialog::EDeviceName:
-                            _LIT(KDeviceName,"EDeviceName");
-                            buf.Append(KDeviceName); 
+                            buf.Append(_L("EDeviceName")); 
                             break;
                         case TBluetoothDeviceDialog::EAdditionalDesc:
-                            _LIT(KAdditionalDesc,"EAdditionalDesc");
-                            buf.Append(KAdditionalDesc); 
+                            buf.Append(_L("EAdditionalDesc")); 
                             break;
                     }
                     TPtrC p(buf);
                     TPtrC16 *ptr = (TPtrC16 *)value->Data();
-                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, "SetData [%S] = [%S]", &p, ptr);
+                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, _L("SetData [%S] = [%S]"), &p, ptr);
                     );
             User::LeaveIfError(iNotificationData->Add( key, value ));   // Takes ownership of value
             break;
@@ -285,7 +282,7 @@
                     }
                     TPtrC p(buf);
                     TInt *intPtr = (TInt *)value->Data();
-                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, "SetData [%S] = [%d]", &p, *intPtr);
+                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, _L("SetData [%S] = [%d]"), &p, *intPtr);
                     );
             User::LeaveIfError(iNotificationData->Add( key, value ));   // Takes ownership of value
             break;
@@ -322,21 +319,18 @@
                     TBuf<32> buf;
                     switch (aType) {
                         case TBluetoothDialogParams::EAddress:
-                            _LIT(KAddress,"EAddress");
-                            buf.Append(KAddress); 
+                            buf.Append(_L("EAddress")); 
                             break;
                         case TBluetoothDeviceDialog::EDeviceName:
-                            _LIT(KDeviceName,"EDeviceName");
-                            buf.Append(KDeviceName); 
+                            buf.Append(_L("EDeviceName")); 
                             break;
                         case TBluetoothDeviceDialog::EAdditionalDesc:
-                            _LIT(KAdditionalDesc,"EAdditionalDesc");
-                            buf.Append(KAdditionalDesc); 
+                            buf.Append(_L("EAdditionalDesc")); 
                             break;
                     }
                     TPtrC p(buf);
                     TPtrC16 *ptr = (TPtrC16 *)value->Data();
-                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, "SetData [%S] = [%S]", &p, ptr);
+                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, _L("SetData [%S] = [%S]"), &p, ptr);
                     );
             User::LeaveIfError(iNotificationData->Delete( key));
             User::LeaveIfError(iNotificationData->Add( key, value ));   // Takes ownership of value
@@ -390,7 +384,7 @@
                     }
                     TPtrC p(buf);
                     TInt *intPtr = (TInt *)value->Data();
-                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, "SetData [%S] = [%d]", &p, *intPtr);
+                    BOstraceExt2( TRACE_DEBUG, DUMMY_DEVLIST, _L("SetData [%S] = [%d]"), &p, *intPtr);
                     );
 			User::LeaveIfError(iNotificationData->Delete(key));
 			User::LeaveIfError(iNotificationData->Add( key, value ));   // Takes ownership of value
@@ -498,7 +492,7 @@
                 break;
             }
         TPtrC p(buf);
-        BOstraceExt1( TRACE_DEBUG, DUMMY_DEVLIST, "HbSymbianVariantMap [%S]", &p);
+        BOstraceExt1( TRACE_DEBUG, DUMMY_DEVLIST, _L("HbSymbianVariantMap [%S]"), &p);
         }
     }
 #endif // BLUETOOTHTRACE_ENABLED