Juce::Component::contains(*) should be marked const

Hi,

juce::Component::contains(*) should be marked const

otherwise it cant be used when evaluating something like const juce::DragAndDropTarget::SourceDetails

i.e. DragAndDropTarget::isInterestedInDragSource

 

Actually every method that only asks for some const stuff (without modifying the object) should be marked const.


cheers,

raketa

That would seem sensible, but it has to call hitTest, which is virtual and non-const, so it can't really promise to be a const operation..