1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Get rid of warning in LV2Effect.cpp

Use the wxCRT_StrdupA to use the appropriate strdup
function for the platform.
This commit is contained in:
Leland Lucius 2020-02-06 23:18:48 -06:00
parent 2ec12c150b
commit 70a67c51d2

View File

@ -2958,7 +2958,8 @@ LV2_URID LV2Effect::Lookup_URI(URIDMap & map, const char *uri, bool add)
if (add)
{
map.push_back(MallocString<>(strdup(uri)));
// Almost all compilers have strdup(), but VC++ and MinGW call it _strdup().
map.push_back(MallocString<>(wxCRT_StrdupA(uri)));
return ndx + 1;
}