From: Mikko Rasa Date: Mon, 30 May 2011 20:24:54 +0000 (+0300) Subject: Use format instead of stringstream in TimeZone X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=90d55c510f5dbd334be3a16017d1cf6ece61cf85;p=libs%2Fcore.git Use format instead of stringstream in TimeZone --- diff --git a/source/time/timezone.cpp b/source/time/timezone.cpp index a96e1b5..0ec9d2b 100644 --- a/source/time/timezone.cpp +++ b/source/time/timezone.cpp @@ -6,13 +6,12 @@ Distributed under the LGPL */ #include -#include -#include #ifdef WIN32 #include #else #include #endif +#include #include "../core/except.h" #include "timestamp.h" #include "timezone.h" @@ -122,12 +121,10 @@ TimeZone::TimeZone(int minutes): { if(minutes) { - ostringstream ss; - ss.fill('0'); int m = abs(minutes); - ss<<"UTC"<<(minutes<0 ? '-' : '+')<