diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-13 19:51:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-13 19:51:13 +0300 |
commit | 4aac2e2129f91cc77c32b70490468c640d4e2854 (patch) | |
tree | fb1b22dd6874bc5ae4fb0e853f6c0d505f5eddae | |
parent | cbf9ac0e7517e9aac60cb167cb60f860839fb433 (diff) | |
download | plus-4aac2e2129f91cc77c32b70490468c640d4e2854.tar.gz plus-4aac2e2129f91cc77c32b70490468c640d4e2854.tar.bz2 plus-4aac2e2129f91cc77c32b70490468c640d4e2854.tar.xz plus-4aac2e2129f91cc77c32b70490468c640d4e2854.zip |
Fix code style.
-rw-r--r-- | src/gui/models/playertablemodel.cpp | 2 | ||||
-rw-r--r-- | 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; |