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 mc...@apache.org on 2004/05/13 23:07:55 UTC
cvs commit: logging-log4cxx/src class.cpp dateformat.cpp
mcatan 2004/05/13 14:07:55
Modified: include/log4cxx/helpers class.h dateformat.h
src class.cpp dateformat.cpp
Log:
added virtual destructor
Revision Changes Path
1.10 +1 -0 logging-log4cxx/include/log4cxx/helpers/class.h
Index: class.h
===================================================================
RCS file: /home/cvs/logging-log4cxx/include/log4cxx/helpers/class.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- class.h 24 Apr 2004 06:55:01 -0000 1.9
+++ class.h 13 May 2004 21:07:55 -0000 1.10
@@ -53,6 +53,7 @@
{
public:
Class(const String& name);
+ virtual ~Class();
virtual ObjectPtr newInstance() const;
const String& toString() const;
const String& getName() const;
1.14 +1 -0 logging-log4cxx/include/log4cxx/helpers/dateformat.h
Index: dateformat.h
===================================================================
RCS file: /home/cvs/logging-log4cxx/include/log4cxx/helpers/dateformat.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dateformat.h 24 Apr 2004 06:55:01 -0000 1.13
+++ dateformat.h 13 May 2004 21:07:55 -0000 1.14
@@ -33,6 +33,7 @@
public:
DateFormat(const String& dateFormat);
DateFormat(const String& dateFormat, const TimeZonePtr& timeZone);
+ virtual ~DateFormat();
virtual void format(ostream& os, int64_t time) const;
String format(int64_t timeMillis) const;
1.9 +4 -0 logging-log4cxx/src/class.cpp
Index: class.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/class.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- class.cpp 22 Apr 2004 21:21:33 -0000 1.8
+++ class.cpp 13 May 2004 21:07:55 -0000 1.9
@@ -47,6 +47,10 @@
registerClass(this);
}
+Class::~Class()
+{
+}
+
const String& Class::toString() const
{
return name;
1.11 +4 -0 logging-log4cxx/src/dateformat.cpp
Index: dateformat.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/dateformat.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- dateformat.cpp 22 Apr 2004 21:21:33 -0000 1.10
+++ dateformat.cpp 13 May 2004 21:07:55 -0000 1.11
@@ -50,6 +50,10 @@
}
}
+DateFormat::~DateFormat()
+{
+}
+
void DateFormat::format(ostream& os, int64_t timeMillis) const
{
TCHAR buffer[255];