mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-10-02 15:56:37 +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
|
#else
|
||||||
wxFileName pathNorm{ wxStandardPaths::Get().GetInstallPrefix() + L"/share/locale" };
|
wxFileName pathNorm{ wxStandardPaths::Get().GetInstallPrefix() + L"/share/locale" };
|
||||||
#endif
|
#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() };
|
const wxString newPath{ pathNorm.GetFullPath() };
|
||||||
if (pathList.end() ==
|
if (pathList.end() ==
|
||||||
std::find(pathList.begin(), pathList.end(), newPath))
|
std::find(pathList.begin(), pathList.end(), newPath))
|
||||||
|
Reference in New Issue
Block a user