diff options
author | Louie S <louie@example.com> | 2024-02-20 17:44:24 -0500 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-02-20 17:44:24 -0500 |
commit | 2af22ca34e5120ba69cf20911bf802be57cc18dd (patch) | |
tree | 0aa5aee9e5e08a102710225c7bded97b110512ac /src/group.cpp | |
parent | 0b7be46511ec752f1f28e73eac787da633c47f46 (diff) |
Improve group member variable initialization
Diffstat (limited to 'src/group.cpp')
-rw-r--r-- | src/group.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/group.cpp b/src/group.cpp index 7b8f63d..781fb98 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -3,13 +3,13 @@ #include "group.h" -Group::Group(int id, QString name, QString column, QString link, bool hidden) { - this->id = id; - this->name = name; - this->column = column; - this->link = link; - this->hidden = hidden; - +Group::Group(int id, QString name, QString column, QString link, bool hidden) : + id(id), + name(name), + column(column), + link(link), + hidden(hidden) +{ this->setContentsMargins(0, 10, 0, 10); QLabel *name_label = new QLabel(this->name); |