diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-28 15:46:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-28 16:41:19 +0300 |
commit | f146cd42ce84a08879eb286ecd2ed2aa8ad82300 (patch) | |
tree | f689f832f54f361be8cff61deb47c0e32febd486 /src/gui/widgets/widget.h | |
parent | 409cee51fe11e2495a2741226432666a8702dceb (diff) | |
download | ManaVerse-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.gz ManaVerse-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.bz2 ManaVerse-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.xz ManaVerse-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.zip |
fix code style.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r-- | src/gui/widgets/widget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index e05844e4c..17f016c76 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -973,7 +973,8 @@ class Widget : public Widget2 * @see getId, BasicContainer::findWidgetById * @since 0.8.0 */ - void setId(const std::string& id); + void setId(const std::string& id) + { mId = id; } /** * Gets the id of a widget. An id can be useful if a widget needs to be @@ -985,7 +986,8 @@ class Widget : public Widget2 * @see setId, BasicContainer::findWidgetById * @since 0.8.0 */ - const std::string& getId() A_WARN_UNUSED; + const std::string& getId() const A_WARN_UNUSED + { return mId; } /** * Shows a certain part of a widget in the widget's parent. |