diff --git a/src/misc.cxx b/src/misc.cxx index b6e61ec..df51022 100644 --- a/src/misc.cxx +++ b/src/misc.cxx @@ -99,16 +99,9 @@ GetLocale () } bool -IsRightReading (const char * text) +IsRightReading () { - auto isRight = false; - if (text) - isRight = strchr (text, 0xD7) != nullptr || // HE - strchr (text, 0xD8) != nullptr || // AR - strchr (text, 0xD9) != nullptr; // AR - else - isRight = GetLocale () == "he" || GetLocale () == "ar"; - return isRight; + return GetLocale () == "he" || GetLocale () == "ar"; } // Retourne le nom de dossier en cours. diff --git a/src/misc.h b/src/misc.h index d3b7865..5518955 100644 --- a/src/misc.h +++ b/src/misc.h @@ -40,7 +40,7 @@ std::string GetBaseDir (); std::string GetShareDir (); std::string GetBinDir (); std::string GetLocale (); -bool IsRightReading (const char * text = nullptr); +bool IsRightReading (); extern void AddUserPath (std::string & pFilename); enum Location { LOCATION_ABSOLUTE, LOCATION_BASE, LOCATION_USER };