Prefix shadowed CounterState constructor args with underscores

This commit is contained in:
DawnFire42 2026-06-16 16:00:32 -04:00
parent 8bf2d836a6
commit a9793bc006
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
2 changed files with 13 additions and 13 deletions

View file

@ -2,14 +2,14 @@
#include <libcockatrice/utility/color.h>
CounterState::CounterState(int id,
const QString &name,
const QColor &color,
int radius,
int value,
bool active,
CounterState::CounterState(int _id,
const QString &_name,
const QColor &_color,
int _radius,
int _value,
bool _active,
QObject *parent)
: QObject(parent), id(id), name(name), color(color), radius(radius), value(value), active(active)
: QObject(parent), id(_id), name(_name), color(_color), radius(_radius), value(_value), active(_active)
{
}

View file

@ -10,12 +10,12 @@ class CounterState : public QObject
{
Q_OBJECT
public:
CounterState(int id,
const QString &name,
const QColor &color,
int radius,
int value,
bool active = true,
CounterState(int _id,
const QString &_name,
const QColor &_color,
int _radius,
int _value,
bool _active = true,
QObject *parent = nullptr);
static CounterState *fromProto(const ServerInfo_Counter &counter, QObject *parent = nullptr);