1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-02 06:40:12 +01:00

Make Audacity build in C++17 ...

... Fixing many conditional operators with explicit construction of wxString
instead of simple string literals;

And fixing allocation of more strictly aligned structures on Mac, without need
for 10.14 as the minimum SDK, by means of some class-specific operators new
and delete.
This commit is contained in:
Paul Licameli
2021-02-02 11:44:00 -05:00
committed by Dmitry Vedenko
parent e6e81399f7
commit 77dab158c3
19 changed files with 112 additions and 32 deletions

View File

@@ -107,7 +107,8 @@ public:
if (Read(key, &str))
{
struct lconv *info = localeconv();
wxString dec = info ? wxString::FromUTF8(info->decimal_point) : wxT(".");
wxString dec =
info ? wxString::FromUTF8(info->decimal_point) : wxString(".");
str.Replace(wxT(","), dec);
str.Replace(wxT("."), dec);