TabBar: add `noexcept`
authorMax Kellermann <max@musicpd.org>
Wed, 17 Oct 2018 14:30:25 +0000 (16:30 +0200)
committerMax Kellermann <max@musicpd.org>
Wed, 17 Oct 2018 14:30:25 +0000 (16:30 +0200)
src/TabBar.cxx
src/TabBar.hxx

index 0fa8046..70dfe64 100644 (file)
@@ -26,7 +26,7 @@
 #include "i18n.h"
 
 static void
-PaintPageTab(WINDOW *w, Command cmd, const char *label, bool selected)
+PaintPageTab(WINDOW *w, Command cmd, const char *label, bool selected) noexcept
 {
        SelectStyle(w, selected ? Style::TITLE : Style::TITLE_BOLD);
        if (selected)
@@ -52,7 +52,7 @@ PaintPageTab(WINDOW *w, Command cmd, const char *label, bool selected)
 
 void
 PaintTabBar(WINDOW *w, const PageMeta &current_page_meta,
-           const char *current_page_title)
+           const char *current_page_title) noexcept
 {
        for (unsigned i = 0;; ++i) {
                const auto *page = GetPageMeta(i);
index 658c10f..b0a7890 100644 (file)
@@ -26,6 +26,6 @@ struct PageMeta;
 
 void
 PaintTabBar(WINDOW *w, const PageMeta &current_page_meta,
-           const char *current_page_title);
+           const char *current_page_title) noexcept;
 
 #endif