bluetoothengine/btaudioman/src/btaudiomanplugin.cpp
branchRCL_3
changeset 11 a42ed326b458
parent 6 6a29d5ad0713
--- a/bluetoothengine/btaudioman/src/btaudiomanplugin.cpp	Fri Mar 12 15:43:23 2010 +0200
+++ b/bluetoothengine/btaudioman/src/btaudiomanplugin.cpp	Mon Mar 15 12:41:15 2010 +0200
@@ -129,6 +129,7 @@
 
 void CBtAudioManPlugin::GetConnections( RBTDevAddrArray& aAddrArray, TBTProfile aConnectedProfile )
     {
+    TRACE_FUNC
     aAddrArray.Reset();
     TProfiles profile = EUnknownProfile;
     
@@ -149,7 +150,6 @@
     TInt numAddresses = 2;
     TInt count = numAddresses;
     RBuf8 addrbuf;
-    TPtrC8 ptr(addrbuf);
     
     do
         {
@@ -187,6 +187,8 @@
     //maybe another connection was established while this was taking place
     while (count > numAddresses);
     
+    TPtrC8 ptr(addrbuf);
+    
     //iterate through the addresses buffer
     while (ptr.Length() >= KBTDevAddrSize)
         {