From 90d55c510f5dbd334be3a16017d1cf6ece61cf85 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 30 May 2011 23:24:54 +0300 Subject: [PATCH] Use format instead of stringstream in TimeZone --- source/time/timezone.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 ? '-' : '+')<