From 4aac2e2129f91cc77c32b70490468c640d4e2854 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Oct 2017 19:51:13 +0300 Subject: Fix code style. --- src/gui/models/playertablemodel.cpp | 2 +- src/utils/stringutils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/models/playertablemodel.cpp b/src/gui/models/playertablemodel.cpp index 271b6a5bb..161e82dc2 100644 --- a/src/gui/models/playertablemodel.cpp +++ b/src/gui/models/playertablemodel.cpp @@ -45,7 +45,7 @@ static const unsigned int ROW_HEIGHT = 12; static const unsigned int NAME_COLUMN_WIDTH = 230; static const unsigned int RELATION_CHOICE_COLUMN_WIDTH = 80; -#define WIDGET_AT(row, column) (((row) * COLUMNS_NR) + column) +#define WIDGET_AT(row, column) (((row) * COLUMNS_NR) + (column)) PlayerTableModel::PlayerTableModel(const Widget2 *const widget) : Widget2(widget), diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 4f3a156cc..74edefba0 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -99,7 +99,7 @@ const char *ipToString(const uint32_t address) std::string strprintf(const char *const format, ...) { char buf[257]; - va_list(args); + va_list args; va_start(args, format); size_t nb = vsnprintf(buf, 256, format, args); buf[256] = 0; -- cgit v1.2.3-70-g09d2