Skip to content

Commit

Permalink
LibGUI: Make Layout::margins() return a const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Dec 30, 2020
1 parent 881379e commit b2bba5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Layout : public Core::Object {
void notify_adopted(Badge<Widget>, Widget&);
void notify_disowned(Badge<Widget>, Widget&);

Margins margins() const { return m_margins; }
const Margins& margins() const { return m_margins; }
void set_margins(const Margins&);

int spacing() const { return m_spacing; }
Expand Down

0 comments on commit b2bba5c

Please sign in to comment.