commit ca60cca822fcd81b971ad076b5df711721f88d53
parent 7dbd5a7afe004df625b9dfea7f4d79cf7479f7f0
Author: falkTX <falktx@gmail.com>
Date: Fri, 10 Oct 2014 18:04:13 +0100
Do not use cbegin/cend, it's c++11 only so not provided by OSX
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp
@@ -537,7 +537,7 @@ public:
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;
@@ -679,7 +679,7 @@ public:
#if DISTRHO_PLUGIN_WANT_STATE
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& value = cit->second;
diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp
@@ -416,7 +416,7 @@ public:
fVstUI = new UIVst(fAudioMaster, fEffect, this, &fPlugin, (intptr_t)ptr);
# 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& value = cit->second;
@@ -469,7 +469,7 @@ public:
{
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& value = cit->second;