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("%"));
        }
   }
   
  
  
  

Reply via email to