mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fixed clazy warnings: pass large objects by reference to const.
This commit is contained in:
@@ -387,7 +387,7 @@ namespace BlackSimPlugin
|
||||
},
|
||||
Qt::QueuedConnection));
|
||||
|
||||
m_connectionGuard.append(connect(this, &ISimulator::ownAircraftModelChanged, this, [ = ](CAircraftModel model)
|
||||
m_connectionGuard.append(connect(this, &ISimulator::ownAircraftModelChanged, this, [ = ](const CAircraftModel &model)
|
||||
{
|
||||
if (!m_monitorWidget) return;
|
||||
m_monitorWidget->appendSendingCall("ownAircraftModelChanged", model.toQString());
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#include <SimConnect.h>
|
||||
#include <array>
|
||||
|
||||
// clazy:excludeall=function-args-by-ref
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
bool loadAndResolveSimConnect(bool manifestProbing)
|
||||
|
||||
Reference in New Issue
Block a user