From 0d00faf493047c773864055bbd11b402b74f9f59 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 23 Jul 2024 09:28:54 +0200 Subject: [PATCH] Remove hard coded (szeged) zone names --- UpdatePTUDevCtrl/utils.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/UpdatePTUDevCtrl/utils.cpp b/UpdatePTUDevCtrl/utils.cpp index 3bc998f..010b838 100644 --- a/UpdatePTUDevCtrl/utils.cpp +++ b/UpdatePTUDevCtrl/utils.cpp @@ -110,19 +110,19 @@ QString Utils::getTariffInfo(QString fileName) { } QString Utils::zoneName(quint8 i) { - static constexpr char const *zName[] = { - "", - "purple", - "blue", - "yellow", - "green", - "yellow (mars)", - "green (mars)" - }; - if (i < (sizeof(zName)/sizeof(char const *))) { - return zName[i]; - } - return "N/A"; + //static constexpr char const *zName[] = { + // "", + // "purple", + // "blue", + // "yellow", + // "green", + // "yellow (mars)", + // "green (mars)" + //}; + //if (i < (sizeof(zName)/sizeof(char const *))) { + // return zName[i]; + //} + return "---"; } void Utils::printCriticalErrorMsg(QString const &errorMsg, bool upper, bool lower) {