Author: wyoung
Date: Thu Dec 27 01:56:27 2007
New Revision: 2023
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2023&view=rev
Log:
Minor constness fixes by Jonathan Wakely
Modified:
trunk/lib/refcounted.h
trunk/lib/result.h
Modified: trunk/lib/refcounted.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/refcounted.h?rev=2023&r1=2022&r2=2023&view=diff
==============================================================================
--- trunk/lib/refcounted.h (original)
+++ trunk/lib/refcounted.h Thu Dec 27 01:56:27 2007
@@ -48,7 +48,7 @@
struct RefCountedPointerDestroyer
{
/// \brief Functor implementation
- void operator()(T* doomed) { delete doomed; }
+ void operator()(T* doomed) const { delete doomed; }
};
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=2023&r1=2022&r2=2023&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Thu Dec 27 01:56:27 2007
@@ -276,7 +276,7 @@
struct RefCountedPointerDestroyer<MYSQL_RES>
{
/// \brief Functor implementation
- void operator()(MYSQL_RES* doomed)
+ void operator()(MYSQL_RES* doomed) const
{
if (doomed) {
mysql_free_result(doomed);
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits