diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-07 23:40:10 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-07 23:40:10 +0000 |
commit | c856c3c44f488b137dd3b76f81b2d4b9c5444b73 (patch) | |
tree | 88a64ae28e48d4f71396d329b0d1c797b31accc3 /muse2/synti/deicsonze | |
parent | 1e2c10156202d4b50df409a1930adc3f151e44dc (diff) |
Converted all latin1() instances. Ported Qt3 methods to Qt4.
Diffstat (limited to 'muse2/synti/deicsonze')
-rw-r--r-- | muse2/synti/deicsonze/deicsonze.cpp | 30 | ||||
-rw-r--r-- | muse2/synti/deicsonze/deicsonzegui.cpp | 22 |
2 files changed, 26 insertions, 26 deletions
diff --git a/muse2/synti/deicsonze/deicsonze.cpp b/muse2/synti/deicsonze/deicsonze.cpp index 136275f1..519a7f05 100644 --- a/muse2/synti/deicsonze/deicsonze.cpp +++ b/muse2/synti/deicsonze/deicsonze.cpp @@ -1254,10 +1254,10 @@ void DeicsOnze::loadSet(QString fileName) { _gui->writeEvent(evSysexUpdateGuiSet); } else printf("unsupported *.dei file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -1292,10 +1292,10 @@ void DeicsOnze::loadSutulaPresets() QString presetPath("/home/a-lin/sources/svnMusEDev/lmuse/muse/synti/deicsonze/ARCH_ALIN"); - file = fopen (presetPath.toLatin1().data(), "rt"); + file = fopen (presetPath.toLatin1().constData(), "rt"); if (file == NULL) { printf("can't open "); - printf(presetPath.toLatin1().data()); + printf(presetPath.toLatin1().constData()); printf("\n"); } else @@ -2131,7 +2131,7 @@ void DeicsOnze::readConfiguration(QDomNode qdn) { unsigned char *dataInitSetPath = new unsigned char[1+MAXSTRLENGTHINITSETPATH]; dataInitSetPath[0]=SYSEX_INITSETPATH; - strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().data(), + strncpy((char*)&dataInitSetPath[1], _initSetPath.toLatin1().constData(), MAXSTRLENGTHINITSETPATH); MidiPlayEvent evInitSetPath(0, 0, ME_SYSEX, (const unsigned char*)dataInitSetPath, @@ -2155,7 +2155,7 @@ void DeicsOnze::readConfiguration(QDomNode qdn) { new unsigned char[1+MAXSTRLENGTHBACKGROUNDPIXPATH]; dataBackgroundPixPath[0]=SYSEX_BACKGROUNDPIXPATH; strncpy((char*)&dataBackgroundPixPath[1], - _backgroundPixPath.toLatin1().data(), + _backgroundPixPath.toLatin1().constData(), MAXSTRLENGTHBACKGROUNDPIXPATH); MidiPlayEvent evBackgroundPixPath(0, 0, ME_SYSEX, @@ -2218,10 +2218,10 @@ void DeicsOnze::loadConfiguration(QString fileName) { readConfiguration(node.firstChild()); } else printf("unsupported *.dco file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -2335,10 +2335,10 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) { buffer[NUM_BLUE_EDITBACKGROUND]=(unsigned char)_gui->ebColor->blue(); buffer[NUM_ISINITSET]=(unsigned char)_isInitSet; strncpy((char*)&buffer[NUM_INITSETPATH], - _initSetPath.toLatin1().data(), MAXSTRLENGTHINITSETPATH); + _initSetPath.toLatin1().constData(), MAXSTRLENGTHINITSETPATH); buffer[NUM_ISBACKGROUNDPIX]=(unsigned char)_isBackgroundPix; strncpy((char*)&buffer[NUM_BACKGROUNDPIXPATH], - _backgroundPixPath.toLatin1().data(), + _backgroundPixPath.toLatin1().constData(), MAXSTRLENGTHBACKGROUNDPIXPATH); } //FX @@ -2350,11 +2350,11 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) { (_pluginIReverb?(unsigned char)_pluginIReverb->plugin()->controlInPorts() : 0); strncpy((char*)&buffer[NUM_REVERB_LIB], (_pluginIReverb? - _pluginIReverb->plugin()->lib().toLatin1().data() : "\0"), + _pluginIReverb->plugin()->lib().toLatin1().constData() : "\0"), MAXSTRLENGTHFXLIB); strncpy((char*)&buffer[NUM_REVERB_LABEL], (_pluginIReverb? - _pluginIReverb->plugin()->label().toLatin1().data() : "\0"), + _pluginIReverb->plugin()->label().toLatin1().constData() : "\0"), MAXSTRLENGTHFXLABEL); //chorus buffer[NUM_IS_CHORUS_ON]=(unsigned char)_global.isChorusActivated; @@ -2364,11 +2364,11 @@ void DeicsOnze::getInitData(int* length, const unsigned char** data) { (_pluginIChorus?(unsigned char)_pluginIChorus->plugin()->controlInPorts() : 0); strncpy((char*)&buffer[NUM_CHORUS_LIB], (_pluginIChorus? - _pluginIChorus->plugin()->lib().toLatin1().data() : "\0"), + _pluginIChorus->plugin()->lib().toLatin1().constData() : "\0"), MAXSTRLENGTHFXLIB); strncpy((char*)&buffer[NUM_CHORUS_LABEL], (_pluginIChorus? - _pluginIChorus->plugin()->label().toLatin1().data() : "\0"), + _pluginIChorus->plugin()->label().toLatin1().constData() : "\0"), MAXSTRLENGTHFXLABEL); //delay buffer[NUM_IS_DELAY_ON]=(unsigned char)_global.isDelayActivated; @@ -2747,7 +2747,7 @@ void DeicsOnze::parseInitData(int length, const unsigned char* data) { //setSet(); } else printf("Wrong set version : %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } node = node.nextSibling(); } diff --git a/muse2/synti/deicsonze/deicsonzegui.cpp b/muse2/synti/deicsonze/deicsonzegui.cpp index c87ade2a..4bdf0205 100644 --- a/muse2/synti/deicsonze/deicsonzegui.cpp +++ b/muse2/synti/deicsonze/deicsonzegui.cpp @@ -598,10 +598,10 @@ void DeicsOnzeGui::loadConfiguration(QString fileName) { _deicsOnze->readConfiguration(node.firstChild()); } else printf("unsupported *.dco file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -1681,7 +1681,7 @@ void DeicsOnzeGui::processEvent(const MidiPlayEvent& ev) { setSet(); /*} else printf("Wrong set version : %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } node = node.nextSibling(); } @@ -1791,10 +1791,10 @@ void DeicsOnzeGui::loadSetDialog() { updatePresetName("INITVOICE", false); } else printf("unsupported *.dei file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -2026,10 +2026,10 @@ void DeicsOnzeGui::loadCategoryDialog() { setSet(); } else printf("unsupported *.dec file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -2193,10 +2193,10 @@ void DeicsOnzeGui::loadSubcategoryDialog() { setCategory(cat); } else printf("unsupported *.des file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } @@ -2364,10 +2364,10 @@ void DeicsOnzeGui::loadPresetDialog() { setSubcategory(sub->_subcategory); } else printf("unsupported *.dep file version %s\n", - version.toLatin1().data()); + version.toLatin1().constData()); } else printf("DeicsOnze: %s not supported\n", - e.tagName().toLatin1().data()); + e.tagName().toLatin1().constData()); node = node.nextSibling(); } } |