summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs')
-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(),