From 672b07b9ac05c51040f515e2caade250f7830b92 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 23 Feb 2016 10:08:46 +0000 Subject: [PATCH] Added explicit namespaces to some RTAS code --- .../RTAS/juce_RTAS_Wrapper.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp b/modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp index 37d80fdd37..0834b629d7 100644 --- a/modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp @@ -129,8 +129,8 @@ extern void JUCE_CALLTYPE passFocusToHostWindow (void* hostWindow); #endif #else - extern void* attachSubWindow (void* hostWindowRef, Component* comp); - extern void removeSubWindow (void* nsWindow, Component* comp); + extern void* attachSubWindow (void* hostWindowRef, juce::Component* comp); + extern void removeSubWindow (void* nsWindow, juce::Component* comp); extern void forwardCurrentKeyEventToHostWindow(); #endif @@ -236,7 +236,7 @@ public: void timerCallback() override { - if (! Component::isMouseButtonDownAnywhere()) + if (! juce::Component::isMouseButtonDownAnywhere()) { stopTimer(); @@ -286,7 +286,7 @@ public: private: AudioProcessor* const filter; JucePlugInProcess* const process; - ScopedPointer wrapper; + ScopedPointer wrapper; ScopedPointer editorComp; void deleteEditorComp() @@ -297,7 +297,7 @@ public: { PopupMenu::dismissAllActiveMenus(); - if (Component* const modalComponent = Component::getCurrentlyModalComponent()) + if (juce::Component* const modalComponent = juce::Component::getCurrentlyModalComponent()) modalComponent->exitModalState (0); filter->editorBeingDeleted (editorComp); @@ -311,14 +311,14 @@ public: //============================================================================== // A component to hold the AudioProcessorEditor, and cope with some housekeeping // chores when it changes or repaints. - class EditorCompWrapper : public Component + class EditorCompWrapper : public juce::Component #if ! JUCE_MAC , public FocusChangeListener #endif { public: EditorCompWrapper (void* const hostWindow_, - Component* const editorComp, + juce::Component* const editorComp, JuceCustomUIView* const owner_) : hostWindow (hostWindow_), owner (owner_), @@ -364,7 +364,7 @@ public: void resized() override { - if (Component* const ed = getEditor()) + if (juce::Component* const ed = getEditor()) ed->setBounds (getLocalBounds()); repaint(); @@ -380,7 +380,7 @@ public: } #endif - void childBoundsChanged (Component* child) override + void childBoundsChanged (juce::Component* child) override { setSize (child->getWidth(), child->getHeight()); child->setTopLeftPosition (0, 0); @@ -409,7 +409,7 @@ public: JuceCustomUIView* const owner; int titleW, titleH; - Component* getEditor() const { return getChildComponent (0); } + juce::Component* getEditor() const { return getChildComponent (0); } JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper) };