add noexcept

This commit is contained in:
Jinhao 2017-06-18 10:10:30 +08:00
parent b5db21567f
commit 74dedb9506
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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();