Date: Tuesday, December 13, 2005 @ 18:48:31
  Author: gilles
    Path: /cvsroot/carob/carob

Modified: include/Connection.hpp (1.34 -> 1.35) src/Connection.cpp (1.40
          -> 1.41)

Changed setAutoCommit parameter passing from "by reference" to "by value" 
(simple types should be passed by value to avoid dereferencement overhead)


------------------------+
 include/Connection.hpp |    2 +-
 src/Connection.cpp     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Index: carob/include/Connection.hpp
diff -u carob/include/Connection.hpp:1.34 carob/include/Connection.hpp:1.35
--- carob/include/Connection.hpp:1.34   Tue Dec 13 18:18:51 2005
+++ carob/include/Connection.hpp        Tue Dec 13 18:48:31 2005
@@ -134,7 +134,7 @@
    *          <code>false</code> disables it
    * @throws SocketIOException if a database access error occurs
    */
-  void              setAutoCommit(const bool& autoCommit)
+  void              setAutoCommit(bool autoCommit)
                         throw (SocketIOException, BackendException, 
                         ControllerException, ProtocolException,
                         UnexpectedException);
Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.40 carob/src/Connection.cpp:1.41
--- carob/src/Connection.cpp:1.40       Tue Dec 13 18:33:12 2005
+++ carob/src/Connection.cpp    Tue Dec 13 18:48:31 2005
@@ -307,7 +307,7 @@
   return false;
 }
 
-void Connection::setAutoCommit(const bool& autoCommitPrm)
+void Connection::setAutoCommit(bool autoCommitPrm)
     throw (SocketIOException, BackendException, ControllerException, 
     ProtocolException, UnexpectedException)
 {

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to