You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by af...@apache.org on 2007/05/14 18:50:27 UTC

svn commit: r537909 - in /logging/log4cxx/trunk: include/log4cxx/helpers/pool.h src/pool.cpp

Author: afester
Date: Mon May 14 09:50:21 2007
New Revision: 537909

URL: http://svn.apache.org/viewvc?view=rev&rev=537909
Log:
LOGCXX-14: Made return value of Pool::getAPRPool() non-const to 
avoid "cast to non-const type" warning

Modified:
    logging/log4cxx/trunk/include/log4cxx/helpers/pool.h
    logging/log4cxx/trunk/src/pool.cpp

Modified: logging/log4cxx/trunk/include/log4cxx/helpers/pool.h
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/include/log4cxx/helpers/pool.h?view=diff&rev=537909&r1=537908&r2=537909
==============================================================================
--- logging/log4cxx/trunk/include/log4cxx/helpers/pool.h (original)
+++ logging/log4cxx/trunk/include/log4cxx/helpers/pool.h Mon May 14 09:50:21 2007
@@ -32,7 +32,7 @@
                 public:
                         Pool();
                         Pool(log4cxx_pool_t* pool, bool release);
-                        const log4cxx_pool_t* getAPRPool();
+                        log4cxx_pool_t* getAPRPool();
                         ~Pool();
 
                         char* palloc(size_t length);

Modified: logging/log4cxx/trunk/src/pool.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/pool.cpp?view=diff&rev=537909&r1=537908&r2=537909
==============================================================================
--- logging/log4cxx/trunk/src/pool.cpp (original)
+++ logging/log4cxx/trunk/src/pool.cpp Mon May 14 09:50:21 2007
@@ -46,7 +46,7 @@
 }
 
 
-const log4cxx_pool_t* Pool::getAPRPool() {
+log4cxx_pool_t* Pool::getAPRPool() {
    return pool;
 }