summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/fluid/fluidgui.cpp3
-rw-r--r--muse2/synti/vam/vamgui.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp
index 4782e741..10625999 100644
--- a/muse2/synti/fluid/fluidgui.cpp
+++ b/muse2/synti/fluid/fluidgui.cpp
@@ -55,7 +55,8 @@ void FLUIDGui::loadFont()
QMessageBox::critical(this, tr("FLUID: open Soundfile"), s);
return;
}
- const char* path = pathEntry->text().toLatin1();
+ QByteArray ba = pathEntry->text().toLatin1();
+ const char* path = ba.constData();
int len = strlen(path) + 1 + 3;
unsigned char buffer[len];
int k = 0;
diff --git a/muse2/synti/vam/vamgui.cpp b/muse2/synti/vam/vamgui.cpp
index 1ed32994..10378229 100644
--- a/muse2/synti/vam/vamgui.cpp
+++ b/muse2/synti/vam/vamgui.cpp
@@ -445,7 +445,8 @@ void VAMGui::setPreset(Preset* preset)
putchar(0x7c); // mess
putchar(0x2); // vam
putchar(0x3); // setPreset
- const char* name = preset->name.toLatin1();
+ QByteArray ba = preset->name.toLatin1();
+ const char* name = ba.constData();
while (*name)
putchar(*name++ & 0x7f);
putchar(0);