diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 21:54:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:17 +0300 |
commit | fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8 (patch) | |
tree | 3161dab8e42bdadba82b0853bba2f9ce9623b1ae /src/gui/widgets/tabs | |
parent | 053e83ed9e1253b20411224d6958abdf94c43ffa (diff) | |
download | plus-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.gz plus-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.bz2 plus-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.tar.xz plus-fe189677b7596b3d0dbd7a2943fda37a3e5cd6a8.zip |
fix initialisation style in chattab.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/chattab.cpp | 3 |
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(), |