mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 06:25:33 +08:00
Fix clang warnings
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#include "simconnectsymbols.h"
|
#include "simconnectsymbols.h"
|
||||||
#include "blackmisc/logmessage.h"
|
#include "blackmisc/logmessage.h"
|
||||||
#include <QLibrary>
|
#include <QLibrary>
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
#include <SimConnect.h>
|
#include <SimConnect.h>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ typedef HRESULT(__stdcall *PfnSimConnect_MapClientDataNameToID)(HANDLE, const ch
|
|||||||
typedef HRESULT(__stdcall *PfnSimConnect_CreateClientData)(HANDLE, SIMCONNECT_CLIENT_DATA_ID, DWORD, SIMCONNECT_CREATE_CLIENT_DATA_FLAG);
|
typedef HRESULT(__stdcall *PfnSimConnect_CreateClientData)(HANDLE, SIMCONNECT_CLIENT_DATA_ID, DWORD, SIMCONNECT_CREATE_CLIENT_DATA_FLAG);
|
||||||
typedef HRESULT(__stdcall *PfnSimConnect_AddToClientDataDefinition)(HANDLE, SIMCONNECT_CLIENT_DATA_DEFINITION_ID, DWORD, DWORD, float, DWORD);
|
typedef HRESULT(__stdcall *PfnSimConnect_AddToClientDataDefinition)(HANDLE, SIMCONNECT_CLIENT_DATA_DEFINITION_ID, DWORD, DWORD, float, DWORD);
|
||||||
|
|
||||||
//! The SimCOnnect Symbols
|
//! The SimConnect Symbols
|
||||||
//! \private @{
|
//! \private @{
|
||||||
struct SimConnectSymbols
|
struct SimConnectSymbols
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ struct SimConnectSymbols
|
|||||||
};
|
};
|
||||||
//! @ }
|
//! @ }
|
||||||
|
|
||||||
SimConnectSymbols gSymbols;
|
static SimConnectSymbols gSymbols;
|
||||||
|
|
||||||
template<typename FuncPtr>
|
template<typename FuncPtr>
|
||||||
bool resolveSimConnectSymbol(QLibrary &library, FuncPtr &funcPtr, const char *funcName)
|
bool resolveSimConnectSymbol(QLibrary &library, FuncPtr &funcPtr, const char *funcName)
|
||||||
|
|||||||
Reference in New Issue
Block a user