summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 22:41:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 22:41:47 +0200
commit7be216d351b4b09e01ef2ce0cf8b0ab94f801713 (patch)
treea884c6139edb568aa9160730774e22c59b0e156d
parentfe98f357299d321feac176286b54cfd757eaa201 (diff)
static const char* -> #define
-rw-r--r--ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h2
-rw-r--r--ftnoir_protocol_ft/fttypes.h11
-rw-r--r--ftnoir_tracker_base/ftnoir_tracker_ma_types.h6
3 files changed, 9 insertions, 10 deletions
diff --git a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h
index b8b0a9c4..0d386a59 100644
--- a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h
+++ b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h
@@ -43,7 +43,7 @@
#include <QFile>
#include <QFileDialog>
-static const char* FSUIPC_FILENAME = "C:\\Program Files\\Microsoft Games\\Flight Simulator 9\\Modules\\FSUIPC.dll";
+#define FSUIPC_FILENAME "C:\\Program Files\\Microsoft Games\\Flight Simulator 9\\Modules\\FSUIPC.dll"
//
// Define the structures necessary for the FSUIPC_Write calls
diff --git a/ftnoir_protocol_ft/fttypes.h b/ftnoir_protocol_ft/fttypes.h
index 4a3be010..7562a8bb 100644
--- a/ftnoir_protocol_ft/fttypes.h
+++ b/ftnoir_protocol_ft/fttypes.h
@@ -40,12 +40,11 @@
//#include "Registry.h"
// static const char* FT_CLIENT_LOCATION = "Software\\Freetrack\\FreetrackClient";
- static const char* FT_CLIENT_FILENAME = "FreeTrackClient.Dll";
- static const char* FT_MM_DATA = "FT_SharedMem";
- static const char* FREETRACK = "Freetrack";
- static const char* FREETRACK_MUTEX = "FT_Mutext";
- static const char* FT_PROGRAMID = "FT_ProgramID";
-
+#define FT_CLIENT_FILENAME "FreeTrackClient.Dll"
+#define FT_MM_DATA "FT_SharedMem"
+#define FREETRACK "Freetrack"
+#define FREETRACK_MUTEX "FT_Mutext"
+#define FT_PROGRAMID "FT_ProgramID"
struct TFreeTrackData {
int DataID;
diff --git a/ftnoir_tracker_base/ftnoir_tracker_ma_types.h b/ftnoir_tracker_base/ftnoir_tracker_ma_types.h
index bc663056..b3101ad3 100644
--- a/ftnoir_tracker_base/ftnoir_tracker_ma_types.h
+++ b/ftnoir_tracker_base/ftnoir_tracker_ma_types.h
@@ -1,9 +1,9 @@
//
// Definitions for the Shared Memory to send the data to FaceTrackNoIR
//
-static const char* MA_MM_DATA = "MA_SharedMem";
-static const char* MA_FACEAPI = "MA_FaceAPI";
-static const char* MA_MUTEX = "MA_Mutex";
+#define MA_MM_DATA "MA_SharedMem"
+#define MA_FACEAPI "MA_FaceAPI"
+#define MA_MUTEX "MA_Mutex"
struct TFaceData {
int DataID;