mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Avoided a couple of warnings in VST3 code
This commit is contained in:
parent
86aacef11e
commit
2ffaafeeb5
1 changed files with 3 additions and 3 deletions
|
|
@ -67,17 +67,17 @@ inline juce::String toString (const Steinberg::char16* string) noexcept { re
|
|||
inline juce::String toString (const Steinberg::UString128& string) noexcept { return toString (static_cast<const Steinberg::char16*> (string)); }
|
||||
inline juce::String toString (const Steinberg::UString256& string) noexcept { return toString (static_cast<const Steinberg::char16*> (string)); }
|
||||
|
||||
static void toString128 (Steinberg::Vst::String128 result, const char* source)
|
||||
inline void toString128 (Steinberg::Vst::String128 result, const char* source)
|
||||
{
|
||||
Steinberg::UString (result, 128).fromAscii (source);
|
||||
}
|
||||
|
||||
static void toString128 (Steinberg::Vst::String128 result, const juce::String& source)
|
||||
inline void toString128 (Steinberg::Vst::String128 result, const juce::String& source)
|
||||
{
|
||||
Steinberg::UString (result, 128).fromAscii (source.toUTF8());
|
||||
}
|
||||
|
||||
static Steinberg::Vst::TChar* toString (const juce::String& source) noexcept
|
||||
inline Steinberg::Vst::TChar* toString (const juce::String& source) noexcept
|
||||
{
|
||||
return reinterpret_cast<Steinberg::Vst::TChar*> (source.toUTF16().getAddress());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue