javaextensions/bluetooth/bluetoothcommons/src.s60/bturlparams.cpp
changeset 79 2f468c1958d0
parent 21 2a9601315dfc
--- a/javaextensions/bluetooth/bluetoothcommons/src.s60/bturlparams.cpp	Fri Sep 17 08:28:21 2010 +0300
+++ b/javaextensions/bluetooth/bluetoothcommons/src.s60/bturlparams.cpp	Mon Oct 04 00:10:53 2010 +0300
@@ -270,7 +270,7 @@
                  aParam.c_str(), aVal.c_str());
             mReceiveMtu = JavaCommonUtils::wstringToInt(aVal);
         }
-        catch (ExceptionBase ex)
+        catch (ExceptionBase &ex)
         {
             ELOG1(EJavaBluetooth,
                   "- ServiceRecord::setUrlParamsValue URL_PARAM_RECEIVE_MTU exception Caught: %S",
@@ -286,7 +286,7 @@
                  aParam.c_str(), aVal.c_str());
             mTransmitMtu = JavaCommonUtils::wstringToInt(aVal);
         }
-        catch (ExceptionBase ex)
+        catch (ExceptionBase &ex)
         {
             ELOG1(EJavaBluetooth,
                   "- ServiceRecord::setUrlParamsValue URL_PARAM_TRANSMIT_MTU exception Caught: %S",
@@ -404,7 +404,7 @@
             mBlockedSenders.push_back(blackPattern);
             index = aBlackList.find(SEMICOLON);
         }
-        catch (ExceptionBase ex)
+        catch (ExceptionBase &ex)
         {
             // Nothing to handle here.
         }
@@ -422,7 +422,7 @@
                                       aBlackList.c_str());
             mBlockedSenders.push_back(blackPattern);
         }
-        catch (ExceptionBase ex)
+        catch (ExceptionBase &ex)
         {
             // Nothing to handle here.
         }
@@ -471,7 +471,7 @@
     {
         pattern = S60CommonUtils::wstringToDes(aPattern.c_str());
     }
-    catch (ExceptionBase ex)
+    catch (ExceptionBase &ex)
     {
         return true;
     }