1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Fixed a compiler warning

This commit is contained in:
Tom Poole 2018-02-12 17:13:54 +00:00
parent 187d88e75a
commit f654d453ba

View file

@ -2090,15 +2090,15 @@ private:
}
pointer_sized_int handleCockosGetParameterText (pointer_sized_int paramIndex,
void* destination,
void* dest,
float value)
{
if (processor != nullptr && destination != nullptr)
if (processor != nullptr && dest != nullptr)
{
if (auto* param = processor->getParameters()[(int) paramIndex])
{
String text (param->getText (value, 1024));
memcpy (destination, text.toRawUTF8(), text.length() + 1);
memcpy (dest, text.toRawUTF8(), ((size_t) text.length()) + 1);
return 0xbeef;
}
}