diff --git a/extras/Introjucer/Source/ComponentEditor/components/jucer_ComboBoxHandler.h b/extras/Introjucer/Source/ComponentEditor/components/jucer_ComboBoxHandler.h index 1893a675d0..0154d7067a 100644 --- a/extras/Introjucer/Source/ComponentEditor/components/jucer_ComboBoxHandler.h +++ b/extras/Introjucer/Source/ComponentEditor/components/jucer_ComboBoxHandler.h @@ -231,13 +231,13 @@ private: { } - void setJustification (const Justification& newJustification) + void setJustification (Justification newJustification) { document.perform (new ComboJustifyChangeAction (component, *document.getComponentLayout(), newJustification), "Change combo box justification"); } - const Justification getJustification() const { return component->getJustificationType(); } + Justification getJustification() const { return component->getJustificationType(); } private: ComboBox* const component; @@ -246,7 +246,7 @@ private: class ComboJustifyChangeAction : public ComponentUndoableAction { public: - ComboJustifyChangeAction (ComboBox* const comp, ComponentLayout& layout, const Justification& newState_) + ComboJustifyChangeAction (ComboBox* const comp, ComponentLayout& layout, Justification newState_) : ComponentUndoableAction (comp, layout), newState (newState_), oldState (comp->getJustificationType()) diff --git a/extras/Introjucer/Source/ComponentEditor/components/jucer_GroupComponentHandler.h b/extras/Introjucer/Source/ComponentEditor/components/jucer_GroupComponentHandler.h index ea319faace..ff7723b842 100644 --- a/extras/Introjucer/Source/ComponentEditor/components/jucer_GroupComponentHandler.h +++ b/extras/Introjucer/Source/ComponentEditor/components/jucer_GroupComponentHandler.h @@ -176,13 +176,13 @@ private: document.removeChangeListener (this); } - void setJustification (const Justification& newJustification) + void setJustification (Justification newJustification) { document.perform (new GroupJustifyChangeAction (group, *document.getComponentLayout(), newJustification), "Change text label position"); } - const Justification getJustification() const + Justification getJustification() const { return group->getTextLabelPosition(); } @@ -196,7 +196,7 @@ private: class GroupJustifyChangeAction : public ComponentUndoableAction { public: - GroupJustifyChangeAction (GroupComponent* const comp, ComponentLayout& layout, const Justification& newState_) + GroupJustifyChangeAction (GroupComponent* const comp, ComponentLayout& layout, Justification newState_) : ComponentUndoableAction (comp, layout), newState (newState_), oldState (comp->getTextLabelPosition()) diff --git a/extras/Introjucer/Source/ComponentEditor/components/jucer_LabelHandler.h b/extras/Introjucer/Source/ComponentEditor/components/jucer_LabelHandler.h index ebe9ce47b9..16d832193b 100644 --- a/extras/Introjucer/Source/ComponentEditor/components/jucer_LabelHandler.h +++ b/extras/Introjucer/Source/ComponentEditor/components/jucer_LabelHandler.h @@ -370,13 +370,13 @@ private: document.removeChangeListener (this); } - void setJustification (const Justification& newJustification) + void setJustification (Justification newJustification) { document.perform (new LabelJustifyChangeAction (label, *document.getComponentLayout(), newJustification), "Change Label justification"); } - const Justification getJustification() const + Justification getJustification() const { return label->getJustificationType(); } @@ -390,7 +390,7 @@ private: class LabelJustifyChangeAction : public ComponentUndoableAction