From 74dedb9506c67f640e832907ed4f4196504560f9 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 18 Jun 2017 10:10:30 +0800 Subject: [PATCH] add noexcept --- include/nana/gui/widgets/textbox.hpp | 4 ++-- source/gui/widgets/textbox.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nana/gui/widgets/textbox.hpp b/include/nana/gui/widgets/textbox.hpp index 6df66d18..591b4e7e 100644 --- a/include/nana/gui/widgets/textbox.hpp +++ b/include/nana/gui/widgets/textbox.hpp @@ -264,10 +264,10 @@ namespace nana * is line wrapped mode. * @return the number of lines that text are displayed in the screen. */ - std::size_t display_line_count() const; + std::size_t display_line_count() const noexcept; /// Returns the number of text lines. - std::size_t text_line_count() const; + std::size_t text_line_count() const noexcept; protected: //Overrides widget's virtual functions native_string_type _m_caption() const throw() override; diff --git a/source/gui/widgets/textbox.cpp b/source/gui/widgets/textbox.cpp index f0b3351c..1be973ea 100644 --- a/source/gui/widgets/textbox.cpp +++ b/source/gui/widgets/textbox.cpp @@ -720,7 +720,7 @@ namespace drawerbase { editor->set_undo_queue_length(len); } - std::size_t textbox::display_line_count() const + std::size_t textbox::display_line_count() const noexcept { internal_scope_guard lock; auto editor = get_drawer_trigger().editor(); @@ -730,7 +730,7 @@ namespace drawerbase { return 0; } - std::size_t textbox::text_line_count() const + std::size_t textbox::text_line_count() const noexcept { internal_scope_guard lock; auto editor = get_drawer_trigger().editor();