You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2020/06/23 06:59:32 UTC

[logging-log4cxx] branch master updated: Fix missing const

This is an automated email from the ASF dual-hosted git repository.

tschoening pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new e8ccbb2  Fix missing const
e8ccbb2 is described below

commit e8ccbb2348147fc8864f09c23b64cbad01118c0f
Author: baldapps <pl...@gmail.com>
AuthorDate: Mon Jun 22 20:09:29 2020 +0200

    Fix missing const
---
 src/main/cpp/dailyrollingfileappender.cpp           | 2 +-
 src/main/include/log4cxx/dailyrollingfileappender.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/cpp/dailyrollingfileappender.cpp b/src/main/cpp/dailyrollingfileappender.cpp
index 6f57cc3..9d58fcb 100644
--- a/src/main/cpp/dailyrollingfileappender.cpp
+++ b/src/main/cpp/dailyrollingfileappender.cpp
@@ -53,7 +53,7 @@ void DailyRollingFileAppender::setDatePattern(const LogString& newPattern)
 	datePattern = newPattern;
 }
 
-LogString DailyRollingFileAppender::getDatePattern()
+LogString DailyRollingFileAppender::getDatePattern() const
 {
 	return datePattern;
 }
diff --git a/src/main/include/log4cxx/dailyrollingfileappender.h b/src/main/include/log4cxx/dailyrollingfileappender.h
index 2ace32d..e8384c6 100644
--- a/src/main/include/log4cxx/dailyrollingfileappender.h
+++ b/src/main/include/log4cxx/dailyrollingfileappender.h
@@ -183,7 +183,7 @@ class LOG4CXX_EXPORT DailyRollingFileAppender : public log4cxx::rolling::Rolling
 		void setDatePattern(const LogString& pattern);
 
 		/** Returns the value of the <b>DatePattern</b> option. */
-		LogString getDatePattern();
+		LogString getDatePattern() const;
 
 		void setOption(const LogString& option,
 			const LogString& value);