[locale] Replace #define with a static const
- TZ_DATA_FILE is only used in one place
This commit is contained in:
parent
1df6454cfe
commit
906aeec5d3
@ -25,7 +25,6 @@
|
||||
|
||||
|
||||
#define LOCALESDIR "/usr/share/i18n/locales"
|
||||
#define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
|
||||
#define USER_IMAGES_PATH "/usr/share/pixmaps/faces"
|
||||
|
||||
|
||||
|
@ -131,6 +131,8 @@ LocaleGlobal::initLocales() {
|
||||
|
||||
void
|
||||
LocaleGlobal::initLocations() {
|
||||
static const char TZ_DATA_FILE[] = "/usr/share/zoneinfo/zone.tab";
|
||||
|
||||
locations.clear();
|
||||
|
||||
QFile file(TZ_DATA_FILE);
|
||||
|
Loading…
Reference in New Issue
Block a user