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 2018/12/13 16:24:27 UTC

[logging-log4cxx] branch master updated: LOGCXX-502: Fixed various code style issues in appenderattachable.h.

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 4403574  LOGCXX-502: Fixed various code style issues in appenderattachable.h.
4403574 is described below

commit 4403574b4e8a4d9c5e3cea512a6173fec53ea708
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Thu Dec 13 17:24:25 2018 +0100

    LOGCXX-502: Fixed various code style issues in appenderattachable.h.
---
 src/changes/changes.xml                           |  3 ++-
 src/main/include/log4cxx/spi/appenderattachable.h | 22 +++++++++-------------
 2 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 507164f..b7ed563 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -25,7 +25,8 @@
 	<body>
 		<release	version="0.11.0"
 					date="XXXX-XX-XX"
-					description="Maintenance release">
+					description="Maintenance release.">
+			<action issue="LOGCXX-502" type="update">appenderattachable.h function doc formatted "incorrectly"</action>
 			<action issue="LOGCXX-500" type="update">Logging in Timing-Critical Applications</action>
 			<action issue="LOGCXX-493" type="fix">Wrong usage of milli- vs. micro- and non- vs. milliseconds in some docs.</action>
 			<action issue="LOGCXX-488" type="fix">Space after log level hides messages</action>
diff --git a/src/main/include/log4cxx/spi/appenderattachable.h b/src/main/include/log4cxx/spi/appenderattachable.h
index bd49f0d..490a23e 100644
--- a/src/main/include/log4cxx/spi/appenderattachable.h
+++ b/src/main/include/log4cxx/spi/appenderattachable.h
@@ -31,18 +31,17 @@
 
 namespace log4cxx
 {
-
     namespace spi
     {
-
         /**
          * This Interface is for attaching Appenders to objects.
          */
         class LOG4CXX_EXPORT AppenderAttachable : public virtual helpers::Object
         {
         public:
-          // Methods
-         DECLARE_ABSTRACT_LOG4CXX_OBJECT(AppenderAttachable)
+            // Methods
+            DECLARE_ABSTRACT_LOG4CXX_OBJECT(AppenderAttachable)
+
             /**
              * Add an appender.
              */
@@ -59,10 +58,10 @@ namespace log4cxx
             virtual AppenderPtr getAppender(const LogString& name) const = 0;
 
             /**
-         Returns <code>true</code> if the specified appender is in list of
-         attached attached, <code>false</code> otherwise.
-         */
-         virtual bool isAttached(const AppenderPtr& appender) const = 0;
+             * Returns <code>true</code> if the specified appender is in list of
+             * attached appenders, <code>false</code> otherwise.
+             */
+            virtual bool isAttached(const AppenderPtr& appender) const = 0;
 
             /**
              * Remove all previously added appenders.
@@ -80,13 +79,11 @@ namespace log4cxx
              */
             virtual void removeAppender(const LogString& name) = 0;
 
-          // Dtor
-            virtual ~AppenderAttachable(){}
+            // Dtor
+            virtual ~AppenderAttachable() {}
         };
 
-
         LOG4CXX_PTR_DEF(AppenderAttachable);
-
     }
 }
 
@@ -94,5 +91,4 @@ namespace log4cxx
 #pragma warning ( pop )
 #endif
 
-
 #endif //_LOG4CXX_SPI_APPENDER_ATTACHABLE_H_