[gnote] Replace throw() with noexcept



commit dccb16f59a4a9decb8f5cb89e9e4b60743c0abb1
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Jul 22 22:29:27 2017 +0300

    Replace throw() with noexcept

 src/gnome_keyring/keyringexception.hpp |    4 ++--
 src/sharp/exception.cpp                |    5 +++--
 src/sharp/exception.hpp                |    6 +++---
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome_keyring/keyringexception.hpp b/src/gnome_keyring/keyringexception.hpp
index f7606ac..dcb6929 100644
--- a/src/gnome_keyring/keyringexception.hpp
+++ b/src/gnome_keyring/keyringexception.hpp
@@ -38,8 +38,8 @@ public:
   KeyringException(const Glib::ustring & msg)
     : m_what(msg)
     {}
-  virtual ~KeyringException() throw() override {}
-  virtual const char *what() const throw() override
+  virtual ~KeyringException() noexcept override {}
+  virtual const char *what() const noexcept override
     {
       return m_what.c_str();
     }
diff --git a/src/sharp/exception.cpp b/src/sharp/exception.cpp
index 2cacc10..4bdb4cd 100644
--- a/src/sharp/exception.cpp
+++ b/src/sharp/exception.cpp
@@ -1,6 +1,7 @@
 /*
  * gnote
  *
+ * Copyright (C) 2017 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
@@ -30,11 +31,11 @@
 
 namespace sharp {
 
-  Exception::~Exception() throw()
+  Exception::~Exception() noexcept
   {
   }
 
-  const char *Exception::what() const throw()
+  const char *Exception::what() const noexcept
   {
     return m_what.c_str();
   }
diff --git a/src/sharp/exception.hpp b/src/sharp/exception.hpp
index 513f7c8..bfaffa6 100644
--- a/src/sharp/exception.hpp
+++ b/src/sharp/exception.hpp
@@ -42,13 +42,13 @@ class Exception
   : public std::exception
 {
 public:
-  Exception(const Glib::ustring & m) throw()
+  Exception(const Glib::ustring & m) noexcept
     : m_what(m)
     {
     }
-  virtual ~Exception() throw();
+  virtual ~Exception() noexcept;
 
-  virtual const char *what() const throw() override;
+  virtual const char *what() const noexcept override;
 
 private:
   Glib::ustring m_what;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]