From 6e2835bdeb80d67e2c644dea72dd4af97dd676e0 Mon Sep 17 00:00:00 2001 From: Hirek Date: Thu, 21 Aug 2025 20:25:18 +0200 Subject: [PATCH] Remove starts with statement --- McZapkie/Mover.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/McZapkie/Mover.cpp b/McZapkie/Mover.cpp index f932ce39..97f0f69e 100644 --- a/McZapkie/Mover.cpp +++ b/McZapkie/Mover.cpp @@ -11440,11 +11440,7 @@ void TMoverParameters::LoadFIZ_PowerParamsDecode( TPowerParameters &Powerparamet extract_value(PantType, "PantType", Line, ""); if (PantType == "AKP_4E") collectorparameters.PantographType = TPantType::AKP_4E; -#ifdef _WIN32 - if (PantType._Starts_with("DSA")) // zakladam ze wszystkie pantografy DSA sa takie same -#elif __linux__ - if (PantType.starts_with("DSA")) -#endif + if (PantType.size() >= 3 && PantType.compare(0, 3, "DSA") == 0) collectorparameters.PantographType = TPantType::DSAx; if (PantType == "EC160" || PantType == "EC200") collectorparameters.PantographType = TPantType::EC160_200;