summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorSoeren Moch <smoch@web.de>2021-02-13 14:03:29 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-02-16 11:31:28 +0100
commit05c188d3e03f41fcfdcb1e070a638c55d8cb491e (patch)
tree21f92f4a8a12c705d71842ce7169c0a40af5577d /config.h
parent404ed1b377c11c7c3a0bebac9b7f4b9f983af424 (diff)
downloadskin-nopacity-05c188d3e03f41fcfdcb1e070a638c55d8cb491e.tar.gz
skin-nopacity-05c188d3e03f41fcfdcb1e070a638c55d8cb491e.tar.bz2
Cleanup global declarations
Follow the usual pattern to implement global variables in source files and declare these variables as extern in corresponding headers. Signed-off-by: Soeren Moch <smoch@web.de>
Diffstat (limited to 'config.h')
-rw-r--r--config.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/config.h b/config.h
index a4bca0c..1e50d44 100644
--- a/config.h
+++ b/config.h
@@ -58,17 +58,9 @@ class cNopacityConfig {
cString epgImagePath;
bool mainMenuEntry;
};
-#ifdef DEFINE_CONFIG
- cNopacityConfig config;
- cGeometryManager *geoManager;
- cFontManager *fontManager;
- cTheme Theme;
-#else
- extern cNopacityConfig config;
- extern cGeometryManager *geoManager;
- extern cFontManager *fontManager;
- extern cTheme Theme;
-#endif
+
+extern cNopacityConfig config;
+extern cTheme Theme;
//COMMON
#define CLR_TRANSPARENT 0x00000000