summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 21:54:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:17 +0300
commitfe189677b7596b3d0dbd7a2943fda37a3e5cd6a8 (patch)
tree3161dab8e42bdadba82b0853bba2f9ce9623b1ae /src/gui/widgets
parent053e83ed9e1253b20411224d6958abdf94c43ffa (diff)
downloadmv-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.gz
mv-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.bz2
mv-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.xz
mv-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.zip
fix initialisation style in chattab.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/chattab.cpp3
1 files changed, 1 insertions, 2 deletions
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(),