mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
[DeckSync] Prefer ctor params for set-once client/provider per review
This commit is contained in:
parent
aa5cadd4eb
commit
5b51fc8810
3 changed files with 8 additions and 4 deletions
|
|
@ -42,6 +42,11 @@ DeckSyncManager::DeckSyncManager(QObject *parent) : QObject(parent)
|
|||
{
|
||||
}
|
||||
|
||||
DeckSyncManager::DeckSyncManager(AbstractClient *_client, ColorIdentityProvider provider, QObject *parent)
|
||||
: QObject(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