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 rh...@apache.org on 2014/10/21 14:07:25 UTC

svn commit: r1633356 - in /incubator/log4cxx/trunk/src: changes/changes.xml main/include/log4cxx/logger.h

Author: rhys
Date: Tue Oct 21 12:07:24 2014
New Revision: 1633356

URL: http://svn.apache.org/r1633356
Log:
LOG4CXX-443: Return by const reference in Logger::getName()

Modified:
    incubator/log4cxx/trunk/src/changes/changes.xml
    incubator/log4cxx/trunk/src/main/include/log4cxx/logger.h

Modified: incubator/log4cxx/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/changes/changes.xml?rev=1633356&r1=1633355&r2=1633356&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/changes/changes.xml (original)
+++ incubator/log4cxx/trunk/src/changes/changes.xml Tue Oct 21 12:07:24 2014
@@ -87,6 +87,7 @@
 			<action issue="LOGCXX-423" type="fix">Repair autogen script warnings</action>
 			<action issue="LOGCXX-424" type="fix">liblog4cxx.pc.in should reflect dependency on apr-1, apr-1-util</action>
 			<action issue="LOGCXX-425" type="fix">exceptions in CachedDateFormatTestCase after LOGCXX-420</action>
+			<action issue="LOGCXX-443" type="fix">Return by const reference in Logger::getName()</action>
 
 			<action type="change">Behavior of StringHelper::startsWith and endsWith synced</action>
 			<action type="change">Documented C (class) and M (method) log format keywords.</action>

Modified: incubator/log4cxx/trunk/src/main/include/log4cxx/logger.h
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/include/log4cxx/logger.h?rev=1633356&r1=1633355&r2=1633356&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/main/include/log4cxx/logger.h (original)
+++ incubator/log4cxx/trunk/src/main/include/log4cxx/logger.h Tue Oct 21 12:07:24 2014
@@ -629,7 +629,7 @@ namespace log4cxx
         * Get the logger name.
         * @return logger name as LogString.
         */
-        const LogString getName() const { return name; }
+        const LogString& getName() const { return name; }
         /**
         * Get logger name in current encoding.
         * @param name buffer to which name is appended.