Browse Source

Do not use cbegin/cend, it's c++11 only so not provided by OSX

gh-pages
falkTX 10 years ago
parent
commit
ca60cca822
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      distrho/src/DistrhoPluginLV2.cpp
  2. +2
    -2
      distrho/src/DistrhoPluginVST.cpp

+ 2
- 2
distrho/src/DistrhoPluginLV2.cpp View File

@@ -537,7 +537,7 @@ public:


const d_string& key = fPlugin.getStateKey(i); const d_string& key = fPlugin.getStateKey(i);


for (StringMap::const_iterator cit=fStateMap.cbegin(), cite=fStateMap.cend(); cit != cite; ++cit)
for (StringMap::const_iterator cit=fStateMap.begin(), cite=fStateMap.end(); cit != cite; ++cit)
{ {
const d_string& curKey = cit->first; const d_string& curKey = cit->first;


@@ -679,7 +679,7 @@ public:
#if DISTRHO_PLUGIN_WANT_STATE #if DISTRHO_PLUGIN_WANT_STATE
LV2_State_Status lv2_save(const LV2_State_Store_Function store, const LV2_State_Handle handle) LV2_State_Status lv2_save(const LV2_State_Store_Function store, const LV2_State_Handle handle)
{ {
for (StringMap::const_iterator cit=fStateMap.cbegin(), cite=fStateMap.cend(); cit != cite; ++cit)
for (StringMap::const_iterator cit=fStateMap.begin(), cite=fStateMap.end(); cit != cite; ++cit)
{ {
const d_string& key = cit->first; const d_string& key = cit->first;
const d_string& value = cit->second; const d_string& value = cit->second;


+ 2
- 2
distrho/src/DistrhoPluginVST.cpp View File

@@ -416,7 +416,7 @@ public:
fVstUI = new UIVst(fAudioMaster, fEffect, this, &fPlugin, (intptr_t)ptr); fVstUI = new UIVst(fAudioMaster, fEffect, this, &fPlugin, (intptr_t)ptr);


# if DISTRHO_PLUGIN_WANT_STATE # if DISTRHO_PLUGIN_WANT_STATE
for (StringMap::const_iterator cit=fStateMap.cbegin(), cite=fStateMap.cend(); cit != cite; ++cit)
for (StringMap::const_iterator cit=fStateMap.begin(), cite=fStateMap.end(); cit != cite; ++cit)
{ {
const d_string& key = cit->first; const d_string& key = cit->first;
const d_string& value = cit->second; const d_string& value = cit->second;
@@ -469,7 +469,7 @@ public:
{ {
d_string chunkStr; d_string chunkStr;


for (StringMap::const_iterator cit=fStateMap.cbegin(), cite=fStateMap.cend(); cit != cite; ++cit)
for (StringMap::const_iterator cit=fStateMap.begin(), cite=fStateMap.end(); cit != cite; ++cit)
{ {
const d_string& key = cit->first; const d_string& key = cit->first;
const d_string& value = cit->second; const d_string& value = cit->second;


Loading…
Cancel
Save