diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 13:22:39 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 14:00:11 +0200 |
commit | 68935e461e64eeb85ea44c616d1eab58975b8e20 (patch) | |
tree | 471804168af54b681856211f26fefb5091b34c34 /crawl-ref/source/menu.cc | |
parent | 15d548d4ba1148531b8d755d4130962126bccb52 (diff) | |
download | crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.tar.gz crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.zip |
Some more return deparenthesization.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 40a96d0b18..de1dbc1775 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -306,7 +306,7 @@ void Menu::do_menu() int Menu::get_cursor() const { if (last_selected == -1) - return (-1); + return -1; unsigned int next = (last_selected + 1) % item_count(); @@ -1566,10 +1566,10 @@ int menu_colour(const std::string &text, const std::string &prefix, || cm.tag == "inventory" && tag == "pickup") && cm.pattern.matches(tmp_text)) { - return (cm.colour); + return cm.colour; } } - return (-1); + return -1; } int MenuHighlighter::entry_colour(const MenuEntry *entry) const |