zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit d00f06b32ea8c04cac49b7f339cc4b6a9ecd9627
parent 02b543b7fd519e8eba8aed2c85090f0941cce0b2
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Fri, 14 May 2010 15:20:40 -0400

Presets: Fixing glitch

Diffstat:
Msrc/Params/Presets.cpp | 4----
Msrc/Params/PresetsStore.cpp | 2+-
Msrc/Params/PresetsStore.h | 2+-
3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/Params/Presets.cpp b/src/Params/Presets.cpp @@ -106,10 +106,6 @@ void Presets::paste(int npreset) bool Presets::checkclipboardtype() { - char type[MAX_PRESETTYPE_SIZE]; - strcpy(type, this->type); - strcat(type, "n"); - return presetsstore.checkclipboardtype(type); } diff --git a/src/Params/PresetsStore.cpp b/src/Params/PresetsStore.cpp @@ -66,7 +66,7 @@ bool PresetsStore::pasteclipboard(XMLwrapper *xml) return true; } -bool PresetsStore::checkclipboardtype(char *type) +bool PresetsStore::checkclipboardtype(const char *type) { //makes LFO's compatible if((strstr(type, diff --git a/src/Params/PresetsStore.h b/src/Params/PresetsStore.h @@ -36,7 +36,7 @@ class PresetsStore //Clipboard stuff void copyclipboard(XMLwrapper *xml, char *type); bool pasteclipboard(XMLwrapper *xml); - bool checkclipboardtype(char *type); + bool checkclipboardtype(const char *type); //presets stuff void copypreset(XMLwrapper *xml, char *type, std::string name);