diff options
author | 2015-05-08 05:31:32 +0200 | |
---|---|---|
committer | 2015-08-21 17:21:47 +0200 | |
commit | a7fe415ebf474a13dea431b3c3ab230bf6ea414c (patch) | |
tree | 78e506f8ef411c1840ec885fbb7e3a5f30f0f016 | |
parent | b264c701406905a0e54f4f67ad9c49e0d9e40312 (diff) | |
download | paludis-a7fe415ebf474a13dea431b3c3ab230bf6ea414c.tar.gz paludis-a7fe415ebf474a13dea431b3c3ab230bf6ea414c.tar.xz |
nothrow -> noexcept
Change-Id: I944ad237c1cdf9cd49fd94184171555f1b550c0f
Reviewed-on: https://galileo.mailstation.de/gerrit/1894
Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org>
Reviewed-by: Kylie McClain <somasis@exherbo.org>
-rw-r--r-- | paludis/repository.cc | 2 | ||||
-rw-r--r-- | paludis/repository.hh | 3 | ||||
-rw-r--r-- | paludis/repository_name_cache.cc | 2 | ||||
-rw-r--r-- | paludis/repository_name_cache.hh | 2 | ||||
-rw-r--r-- | paludis/util/exception.hh | 4 |
5 files changed, 6 insertions, 7 deletions
diff --git a/paludis/repository.cc b/paludis/repository.cc index 6e0cc7e5f..e1b247a09 100644 --- a/paludis/repository.cc +++ b/paludis/repository.cc @@ -139,7 +139,7 @@ Repository::~Repository() } const RepositoryName -Repository::name() const +Repository::name() const noexcept { return _imp->name; } diff --git a/paludis/repository.hh b/paludis/repository.hh index 358e79bc3..a16171a8f 100644 --- a/paludis/repository.hh +++ b/paludis/repository.hh @@ -275,8 +275,7 @@ namespace paludis /** * Return our name. */ - const RepositoryName name() const PALUDIS_ATTRIBUTE((nothrow)) - PALUDIS_ATTRIBUTE((warn_unused_result)); + const RepositoryName name() const noexcept PALUDIS_ATTRIBUTE((warn_unused_result)); ///\} diff --git a/paludis/repository_name_cache.cc b/paludis/repository_name_cache.cc index 87ee32a7a..a47e1c4d3 100644 --- a/paludis/repository_name_cache.cc +++ b/paludis/repository_name_cache.cc @@ -313,7 +313,7 @@ RepositoryNameCache::remove(const QualifiedPackageName & q) } bool -RepositoryNameCache::usable() const +RepositoryNameCache::usable() const noexcept { return _imp->usable; } diff --git a/paludis/repository_name_cache.hh b/paludis/repository_name_cache.hh index eac19e72f..440291917 100644 --- a/paludis/repository_name_cache.hh +++ b/paludis/repository_name_cache.hh @@ -84,7 +84,7 @@ namespace paludis * Initially this will be true. After the first query the value may * change to false (the query will return a zero pointer too). */ - bool usable() const PALUDIS_ATTRIBUTE((nothrow)); + bool usable() const noexcept; /** * Implement cache regeneration. diff --git a/paludis/util/exception.hh b/paludis/util/exception.hh index 9b6674b66..9c0d9e3d2 100644 --- a/paludis/util/exception.hh +++ b/paludis/util/exception.hh @@ -96,14 +96,14 @@ namespace paludis ///\name Basic operations ///\{ - virtual ~Exception() PALUDIS_ATTRIBUTE((nothrow)); + virtual ~Exception(); ///\} /** * Return our descriptive error message. */ - const std::string & message() const noexcept PALUDIS_ATTRIBUTE((nothrow)); + const std::string & message() const noexcept; /** * Make a backtrace. |