mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
FocusTraverser: Make more things const
This commit is contained in:
parent
9f3666e3e1
commit
dc0dde7fe9
2 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ struct FocusHelpers
|
|||
}
|
||||
|
||||
template <typename FocusContainerFn>
|
||||
static void findAllComponents (Component* parent,
|
||||
static void findAllComponents (const Component* parent,
|
||||
std::vector<Component*>& components,
|
||||
FocusContainerFn isFocusContainer)
|
||||
{
|
||||
|
|
@ -88,8 +88,8 @@ struct FocusHelpers
|
|||
enum class NavigationDirection { forwards, backwards };
|
||||
|
||||
template <typename FocusContainerFn>
|
||||
static Component* navigateFocus (Component* current,
|
||||
Component* focusContainer,
|
||||
static Component* navigateFocus (const Component* current,
|
||||
const Component* focusContainer,
|
||||
NavigationDirection direction,
|
||||
FocusContainerFn isFocusContainer)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue