From 72db44a1387bcfa46b0e6072e93e3169a493513f Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 9 May 2012 13:58:53 +0100 Subject: [PATCH] Removed an old VC6 workaround from Component::findParentComponentOfClass. If you were using its old dummy parameter, just tweak your code to call it using a templated type instead. --- modules/juce_gui_basics/components/juce_Component.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/juce_gui_basics/components/juce_Component.h b/modules/juce_gui_basics/components/juce_Component.h index 517edde3a3..91ffb88e63 100644 --- a/modules/juce_gui_basics/components/juce_Component.h +++ b/modules/juce_gui_basics/components/juce_Component.h @@ -785,14 +785,10 @@ public: For example findParentComponentOfClass \() would return the first parent component that can be dynamically cast to a MyComp, or will return 0 if none of the parents are suitable. - - N.B. The dummy parameter is needed to work around a VC6 compiler bug. */ template - TargetClass* findParentComponentOfClass (TargetClass* const dummyParameter = nullptr) const + TargetClass* findParentComponentOfClass() const { - (void) dummyParameter; - for (Component* p = parentComponent; p != nullptr; p = p->parentComponent) { TargetClass* const target = dynamic_cast (p);