mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-27 00:36:25 +02:00
Fix wxFileName deprecation warning
Signed-off-by: Avery King <gperson@disroot.org>
This commit is contained in:
@@ -225,7 +225,8 @@ void GetLanguages( FilePaths pathList,
|
||||
#else
|
||||
wxFileName pathNorm{ wxStandardPaths::Get().GetInstallPrefix() + L"/share/locale" };
|
||||
#endif
|
||||
pathNorm.Normalize();
|
||||
auto flags = wxPATH_NORM_DOTS | wxPATH_NORM_TILDE | wxPATH_NORM_ABSOLUTE | wxPATH_NORM_SHORTCUT;
|
||||
pathNorm.Normalize(flags);
|
||||
const wxString newPath{ pathNorm.GetFullPath() };
|
||||
if (pathList.end() ==
|
||||
std::find(pathList.begin(), pathList.end(), newPath))
|
||||
|
Reference in New Issue
Block a user