mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 18:43:26 -08:00
[DeckSync] Prefer ctor params for set-once client/provider per review
This commit is contained in:
parent
f597e9bd9f
commit
2db9760170
3 changed files with 10 additions and 4 deletions
|
|
@ -42,6 +42,13 @@ DeckSyncManager::DeckSyncManager(QObject *parent) : QObject(parent)
|
|||
{
|
||||
}
|
||||
|
||||
DeckSyncManager::DeckSyncManager(AbstractClient *_client, ColorIdentityProvider provider, QObject *parent)
|
||||
: DeckSyncManager(parent)
|
||||
{
|
||||
client = _client;
|
||||
colorIdentityProvider = std::move(provider);
|
||||
}
|
||||
|
||||
void DeckSyncManager::setClient(AbstractClient *_client)
|
||||
{
|
||||
client = _client;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue