mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Updating IContext to our current style and making it less reliant on macros.
Updating code that uses IContext to a more conformant pattern of usage.
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
#include <iostream>
|
||||
#include <QStringList>
|
||||
|
||||
Client::Client()
|
||||
: m_net(BlackMisc::IContext::getInstance().singleton<BlackCore::INetwork>())
|
||||
Client::Client(BlackMisc::IContext &ctx)
|
||||
: m_net(&ctx.getObject<BlackCore::INetwork>())
|
||||
{
|
||||
using namespace BlackCore;
|
||||
connect(m_net, &INetwork::atcPositionUpdate, this, &Client::atcPositionUpdate);
|
||||
|
||||
Reference in New Issue
Block a user