Fixed clazy warnings: pass large objects by reference to const.

This commit is contained in:
Mat Sutcliffe
2018-12-17 16:43:54 +00:00
parent e40af8132c
commit 9f85a7b560
27 changed files with 49 additions and 47 deletions

View File

@@ -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());

View File

@@ -16,6 +16,8 @@
#include <SimConnect.h>
#include <array>
// clazy:excludeall=function-args-by-ref
using namespace BlackMisc;
bool loadAndResolveSimConnect(bool manifestProbing)