[prev in list] [next in list] [prev in thread] [next in thread]
List: log4cxx-dev
Subject: cvs commit: logging-log4cxx/src dateformat.cpp
From: mcatan () apache ! org
Date: 2004-09-06 5:20:12
Message-ID: 20040906052012.84389.qmail () minotaur ! apache ! org
[Download RAW message or body]
mcatan 2004/09/05 22:20:11
Modified: src dateformat.cpp
Log:
fixed regression introduced in LOG4CXX-8 fix.
Revision Changes Path
1.14 +2 -6 logging-log4cxx/src/dateformat.cpp
Index: dateformat.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/dateformat.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dateformat.cpp 13 Aug 2004 12:27:48 -0000 1.13
+++ dateformat.cpp 6 Sep 2004 05:20:11 -0000 1.14
@@ -34,9 +34,7 @@
size_t pos = this->dateFormat.find(_T("%Q"));
if (pos != String::npos)
{
- this->dateFormat = this->dateFormat.substr(0, pos);
- this->dateFormat +=_T("%");
- this->dateFormat += this->dateFormat.substr(pos);
+ this->dateFormat.insert(pos, _T("%"));
}
}
@@ -46,9 +44,7 @@
size_t pos = this->dateFormat.find(_T("%Q"));
if (pos != String::npos)
{
- this->dateFormat = this->dateFormat.substr(0, pos);
- this->dateFormat += _T("%");
- this->dateFormat += this->dateFormat.substr(pos);
+ this->dateFormat.insert(pos, _T("%"));
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic