Ref T709, removed unused includes and style

This commit is contained in:
Klaus Basan
2019-07-30 00:57:55 +02:00
committed by Mat Sutcliffe
parent 006fbc88ae
commit 97926eee26
6 changed files with 9 additions and 10 deletions

View File

@@ -92,7 +92,6 @@ namespace XSwiftBus
const DBusObjectPathVTable m_dbusObjectPathVTable = { dbusObjectPathUnregisterFunction, dbusObjectPathMessageFunction, nullptr, nullptr, nullptr, nullptr }; const DBusObjectPathVTable m_dbusObjectPathVTable = { dbusObjectPathUnregisterFunction, dbusObjectPathMessageFunction, nullptr, nullptr, nullptr, nullptr };
}; };
} // ns
}
#endif // guard #endif // guard

View File

@@ -10,9 +10,7 @@
#define NOMINMAX #define NOMINMAX
#endif #endif
#include "plugin.h" #include "plugin.h"
#include "utils.h"
#include "traffic.h" #include "traffic.h"
#include "service.h"
#include <XPLM/XPLMPlanes.h> #include <XPLM/XPLMPlanes.h>
#include <XPLM/XPLMPlugin.h> #include <XPLM/XPLMPlugin.h>
#include <cstring> #include <cstring>
@@ -21,7 +19,7 @@
#define XPLM_MSG_LIVERY_LOADED 108 #define XPLM_MSG_LIVERY_LOADED 108
#endif #endif
XSwiftBus::CPlugin *g_plugin; static XSwiftBus::CPlugin *g_plugin = nullptr;
PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc) PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc)
{ {
@@ -40,6 +38,7 @@ PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc)
PLUGIN_API void XPluginStop() PLUGIN_API void XPluginStop()
{ {
// void
} }
PLUGIN_API int XPluginEnable() PLUGIN_API int XPluginEnable()

View File

@@ -89,6 +89,6 @@ namespace XSwiftBus
static float startServerDeferred(float, float, int, void *refcon); static float startServerDeferred(float, float, int, void *refcon);
static float flightLoopCallback(float, float, int, void *refcon); static float flightLoopCallback(float, float, int, void *refcon);
}; };
} } // ns
#endif // guard #endif // guard

View File

@@ -41,7 +41,7 @@ namespace XSwiftBus
CService(CSettings *staticSettings); CService(CSettings *staticSettings);
//! Destructor //! Destructor
~CService() override = default; virtual ~CService() override = default;
//! DBus interface name //! DBus interface name
static const std::string &InterfaceName() static const std::string &InterfaceName()

View File

@@ -164,6 +164,7 @@ namespace XSwiftBus
static int drawCallback(XPLMDrawingPhase phase, int isBefore, void *refcon); static int drawCallback(XPLMDrawingPhase phase, int isBefore, void *refcon);
static int spaceKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon); static int spaceKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon);
//! Remote aircraft
struct Plane struct Plane
{ {
void *id = nullptr; void *id = nullptr;

View File

@@ -64,7 +64,7 @@ namespace XSwiftBus
} }
} }
const char *introspection_weather = static const char *introspection_weather =
DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE
#include "org.swift_project.xswiftbus.weather.xml" #include "org.swift_project.xswiftbus.weather.xml"
; ;