no throw()

This commit is contained in:
Jinhao
2017-12-19 03:30:38 +08:00
parent 486e75f3ae
commit 5f77c73aaa
18 changed files with 28 additions and 28 deletions

View File

@@ -80,7 +80,7 @@ namespace API
void set_measurer(window, ::nana::dev::widget_content_measurer_interface*);
void attach_drawer(widget&, drawer_trigger&);
::nana::detail::native_string_type window_caption(window) throw();
::nana::detail::native_string_type window_caption(window) noexcept;
void window_caption(window, ::nana::detail::native_string_type);
window create_window(window, bool nested, const rectangle&, const appearance&, widget* attached);

View File

@@ -223,7 +223,7 @@ namespace nana
const drawerbase::combox::drawer_impl& _m_impl() const;
private:
//Overrides widget's virtual functions
native_string_type _m_caption() const throw() override;
native_string_type _m_caption() const noexcept override;
void _m_caption(native_string_type&&) override;
nana::any * _m_anyobj(std::size_t pos, bool alloc_if_empty) const override;
};

View File

@@ -63,8 +63,8 @@ namespace nana{
group& enable_format_caption(bool format);
group& collocate() throw();
group& div(const char* div_str) throw();
group& collocate() noexcept;
group& div(const char* div_str) noexcept;
field_reference operator[](const char* field);
template<typename Widget, typename ...Args>
@@ -78,7 +78,7 @@ namespace nana{
void _m_add_child(const char* field, widget*);
void _m_init();
void _m_complete_creation() override;
native_string_type _m_caption() const throw() override;
native_string_type _m_caption() const noexcept override;
void _m_caption(native_string_type&&) override;
private:
std::unique_ptr<implement> impl_;

View File

@@ -62,12 +62,12 @@ namespace nana
label(window parent, const char* text, bool visible = true) :label(parent, std::string(text),visible) {};
label(window, const rectangle& = {}, bool visible = true);
label& transparent(bool); ///< Switchs the label widget to the transparent background mode.
bool transparent() const throw();
bool transparent() const noexcept;
label& format(bool); ///< Switches the format mode of the widget.
label& add_format_listener(std::function<void(command, const std::string&)>);
/// as same as the HTML "for" attribute of a label
label& click_for(window associated_window) throw();
label& click_for(window associated_window) noexcept;
/// Returns the size of the text. If *allowed_width_in_pixel* is not zero, returns a
/// "corrected" size that changes lines to fit the text into the specified width

View File

@@ -113,7 +113,7 @@ namespace nana
void modifier(std::string prefix_utf8, std::string suffix_utf8);
void modifier(const std::wstring & prefix, const std::wstring& suffix);
private:
native_string_type _m_caption() const throw();
native_string_type _m_caption() const noexcept;
void _m_caption(native_string_type&&);
}; //end class spinbox
}//end namespace nana

View File

@@ -384,7 +384,7 @@ namespace nana
driver();
~driver();
model* get_model() const throw();
model* get_model() const noexcept;
private:
//Overrides drawer_trigger's method
void attached(widget_reference, graph_reference) override;

View File

@@ -276,7 +276,7 @@ namespace nana
std::size_t text_line_count() const noexcept;
protected:
//Overrides widget's virtual functions
native_string_type _m_caption() const throw() override;
native_string_type _m_caption() const noexcept override;
void _m_caption(native_string_type&&) override;
void _m_typeface(const paint::font&) override;
};

View File

@@ -54,9 +54,9 @@ namespace nana
window parent() const;
::std::string caption() const throw();
::std::wstring caption_wstring() const throw();
native_string_type caption_native() const throw();
::std::string caption() const noexcept;
::std::wstring caption_wstring() const noexcept;
native_string_type caption_native() const noexcept;
widget& caption(std::string utf8);
widget& caption(std::wstring);
@@ -130,7 +130,7 @@ namespace nana
virtual void _m_complete_creation();
virtual general_events& _m_get_general_events() const = 0;
virtual native_string_type _m_caption() const throw();
virtual native_string_type _m_caption() const noexcept;
virtual void _m_caption(native_string_type&&);
virtual nana::cursor _m_cursor() const;
virtual void _m_cursor(nana::cursor);

View File

@@ -149,7 +149,7 @@ namespace nana
/// Saves images as a windows bitmap file
/// @param file_utf8 A UTF-8 string to a filename
void save_as_file(const char* file_utf8) const throw();
void save_as_file(const char* file_utf8) const noexcept;
::nana::color palette(bool for_text) const;
graphics& palette(bool for_text, const ::nana::color&);