From fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 21:54:34 +0300 Subject: fix initialisation style in chattab. --- src/gui/widgets/tabs/chattab.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/tabs/chattab.cpp b/src/gui/widgets/tabs/chattab.cpp index 2659ab7f9..a9e1556d6 100644 --- a/src/gui/widgets/tabs/chattab.cpp +++ b/src/gui/widgets/tabs/chattab.cpp @@ -223,8 +223,7 @@ void ChatTab::chatLog(std::string line, Own own, if (config.getBoolValue("useLocalTime")) { - const struct tm *timeInfo; - timeInfo = localtime(&t); + const tm *const timeInfo = localtime(&t); if (timeInfo) { line = strprintf("%s[%02d:%02d] %s%s", lineColor.c_str(), -- cgit v1.2.3-70-g09d2