From 14f9067201e68a08e3b6a7e57b44c6214f94337f Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 20 Nov 2019 21:26:48 +0000 Subject: [PATCH] Try to fix build on old compilers Signed-off-by: falkTX --- source/includes/CarlaNativePrograms.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/includes/CarlaNativePrograms.hpp b/source/includes/CarlaNativePrograms.hpp index f6550b938..05e349b39 100644 --- a/source/includes/CarlaNativePrograms.hpp +++ b/source/includes/CarlaNativePrograms.hpp @@ -47,7 +47,7 @@ enum FileType { FileMIDI, }; -template +template struct NativePluginPresetManager { StringArray filenames; @@ -79,11 +79,11 @@ struct NativePluginPresetManager { // ----------------------------------------------------------------------- // Native Plugin with MIDI programs class -template +template class NativePluginWithMidiPrograms : public NativePluginClass { public: - typedef SharedResourcePointer> NativeMidiPrograms; + typedef SharedResourcePointer> NativeMidiPrograms; NativePluginWithMidiPrograms(const NativeHostDescriptor* const host, const NativeMidiPrograms& programs, @@ -109,7 +109,7 @@ protected: uint32_t getMidiProgramCount() const override { - const NativePluginPresetManager& pm(kPrograms.get()); + const NativePluginPresetManager& pm(kPrograms.get()); return static_cast(pm.filenames.size()); } @@ -117,7 +117,7 @@ protected: { const int index = static_cast(uindex); - const NativePluginPresetManager& pm(kPrograms.get()); + const NativePluginPresetManager& pm(kPrograms.get()); CARLA_SAFE_ASSERT_RETURN(index < pm.filenames.size(), nullptr); fRetMidiProgramName = File(pm.filenames.strings.getUnchecked(index)).getFileNameWithoutExtension(); @@ -136,7 +136,7 @@ protected: { const int iprogram = static_cast(program); - const NativePluginPresetManager& pm(kPrograms.get()); + const NativePluginPresetManager& pm(kPrograms.get()); CARLA_SAFE_ASSERT_RETURN(iprogram < pm.filenames.size(),); const char* const filename(pm.filenames.strings.getUnchecked(iprogram).toRawUTF8());