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:48:38 UTC

svn commit: r537907 - /logging/log4cxx/trunk/src/charsetdecoder.cpp

Author: afester
Date: Mon May 14 09:48:34 2007
New Revision: 537907

URL: http://svn.apache.org/viewvc?view=rev&rev=537907
Log:
LOGCXX-14: added const-cast to avoid "cast to non-const" warning

Modified:
    logging/log4cxx/trunk/src/charsetdecoder.cpp

Modified: logging/log4cxx/trunk/src/charsetdecoder.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/charsetdecoder.cpp?view=diff&rev=537907&r1=537906&r2=537907
==============================================================================
--- logging/log4cxx/trunk/src/charsetdecoder.cpp (original)
+++ logging/log4cxx/trunk/src/charsetdecoder.cpp Mon May 14 09:48:34 2007
@@ -422,7 +422,7 @@
                       int bytes = UnicodeHelper::encodeUTF8(sv, utf8);
                       out.append(utf8, bytes);
                   }
-                  in.position(((char*) src) - in.data());
+                  in.position(((const char*) src) - in.data());
                   return APR_SUCCESS;
               }