[gnote] Remove exception specifications
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove exception specifications
- Date: Sat, 22 Jul 2017 19:39:01 +0000 (UTC)
commit 4261cf043d1ad9a0a42759114efd7ccc7783541f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jul 22 22:32:21 2017 +0300
Remove exception specifications
src/notetag.cpp | 2 +-
src/notetag.hpp | 4 ++--
src/sharp/directory.cpp | 1 -
src/sharp/directory.hpp | 3 +--
src/utils.cpp | 4 +---
src/utils.hpp | 5 ++---
6 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/src/notetag.cpp b/src/notetag.cpp
index 4fb5344..2e36642 100644
--- a/src/notetag.cpp
+++ b/src/notetag.cpp
@@ -31,7 +31,7 @@
namespace gnote {
- NoteTag::NoteTag(const Glib::ustring & tag_name, int flags) throw(sharp::Exception)
+ NoteTag::NoteTag(const Glib::ustring & tag_name, int flags)
: Gtk::TextTag(tag_name)
, m_element_name(tag_name)
, m_widget(NULL)
diff --git a/src/notetag.hpp b/src/notetag.hpp
index 2a0df7a..efa7642 100644
--- a/src/notetag.hpp
+++ b/src/notetag.hpp
@@ -72,7 +72,7 @@ public:
CAN_SPLIT = 32
};
- static Ptr create(const Glib::ustring & tag_name, int flags) throw(sharp::Exception)
+ static Ptr create(const Glib::ustring & tag_name, int flags)
{
return Ptr(new NoteTag(tag_name, flags));
}
@@ -158,7 +158,7 @@ public:
property_foreground_gdk().set_value(render_foreground(value));
}
protected:
- NoteTag(const Glib::ustring & tag_name, int flags = 0) throw(sharp::Exception);
+ NoteTag(const Glib::ustring & tag_name, int flags = 0);
NoteTag();
virtual void initialize(const Glib::ustring & element_name);
diff --git a/src/sharp/directory.cpp b/src/sharp/directory.cpp
index 4ac4e84..517f08d 100644
--- a/src/sharp/directory.cpp
+++ b/src/sharp/directory.cpp
@@ -90,7 +90,6 @@ namespace sharp {
void directory_copy(const Glib::RefPtr<Gio::File> & src,
const Glib::RefPtr<Gio::File> & dest)
- throw(Gio::Error)
{
if (false == dest->query_exists()
|| Gio::FILE_TYPE_DIRECTORY
diff --git a/src/sharp/directory.hpp b/src/sharp/directory.hpp
index 9570db5..520af68 100644
--- a/src/sharp/directory.hpp
+++ b/src/sharp/directory.hpp
@@ -57,8 +57,7 @@ namespace sharp {
* @param dest The destination directory (should exist)
*/
void directory_copy(const Glib::RefPtr<Gio::File> & src,
- const Glib::RefPtr<Gio::File> & dest)
- throw(Gio::Error);
+ const Glib::RefPtr<Gio::File> & dest);
bool directory_create(const Glib::ustring & dir);
diff --git a/src/utils.cpp b/src/utils.cpp
index e341ef6..3165e33 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -185,7 +185,6 @@ namespace gnote {
void open_url(const Glib::ustring & url)
- throw (Glib::Error)
{
if(!url.empty()) {
GError *err = NULL;
@@ -677,8 +676,7 @@ namespace gnote {
}
- TextRange::TextRange(const Gtk::TextIter & _start,
- const Gtk::TextIter & _end) throw(sharp::Exception)
+ TextRange::TextRange(const Gtk::TextIter & _start, const Gtk::TextIter & _end)
{
if(_start.get_buffer() != _end.get_buffer()) {
throw(sharp::Exception("Start buffer and end buffer do not match"));
diff --git a/src/utils.hpp b/src/utils.hpp
index a4afa4f..8336138 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -53,7 +53,7 @@ namespace gnote {
void show_help(const Glib::ustring & filename, const Glib::ustring & link_id,
GdkScreen *screen, Gtk::Window *parent);
- void open_url(const Glib::ustring & url) throw (Glib::Error);
+ void open_url(const Glib::ustring & url);
void show_opening_location_error(Gtk::Window * parent,
const Glib::ustring & url,
const Glib::ustring & error);
@@ -170,8 +170,7 @@ namespace gnote {
{
public:
TextRange();
- TextRange(const Gtk::TextIter & start,
- const Gtk::TextIter & end) throw(sharp::Exception);
+ TextRange(const Gtk::TextIter & start, const Gtk::TextIter & end);
const Glib::RefPtr<Gtk::TextBuffer> & buffer() const
{
return m_buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]