Browse Source

Fix build on macOS 10.5

tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
3be211b237
2 changed files with 3 additions and 11 deletions
  1. +2
    -10
      source/includes/lv2_rdf.hpp
  2. +1
    -1
      source/utils/CarlaLv2Utils.hpp

+ 2
- 10
source/includes/lv2_rdf.hpp View File

@@ -538,7 +538,7 @@ struct LV2_RDF_Parameter {
}
}

LV2_RDF_Parameter& operator=(LV2_RDF_Parameter& other) noexcept
void copyAndReplace(LV2_RDF_Parameter& other) noexcept
{
URI = other.URI;
Type = other.Type;
@@ -560,17 +560,9 @@ struct LV2_RDF_Parameter {
other.Unit.Name = nullptr;
other.Unit.Render = nullptr;
other.Unit.Symbol = nullptr;
return *this;
}

private:
#ifdef CARLA_PROPER_CPP11_SUPPORT
LV2_RDF_Parameter(LV2_RDF_Parameter&) = delete;
LV2_RDF_Parameter(const LV2_RDF_Parameter&) = delete;
#else
LV2_RDF_Parameter(LV2_RDF_Parameter&);
LV2_RDF_Parameter(const LV2_RDF_Parameter&);
#endif
CARLA_DECLARE_NON_COPY_STRUCT(LV2_RDF_Parameter)
};

// Preset


+ 1
- 1
source/utils/CarlaLv2Utils.hpp View File

@@ -2574,7 +2574,7 @@ const LV2_RDF_Descriptor* lv2_rdf_new(const LV2_URI uri, const bool loadPresets)
for (std::map<std::string, LV2_RDF_Parameter>::iterator it = parameters.begin(), end = parameters.end();
it != end; ++it)
{
rdfDescriptor->Parameters[numUsed++] = it->second;
rdfDescriptor->Parameters[numUsed++].copyAndReplace(it->second);
}
}



Loading…
Cancel
Save