*: add lost of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-03 21:33:44 +02:00
parent 62b03cfddf
commit a057b4f6d8
65 changed files with 246 additions and 241 deletions

View File

@@ -127,7 +127,7 @@ public:
unsigned Update(const char *uri_utf8, bool discard) override;
time_t GetUpdateStamp() const override {
time_t GetUpdateStamp() const noexcept override {
return update_stamp;
}

View File

@@ -187,7 +187,7 @@ public:
}
gcc_pure
const char *GetPath() const {
const char *GetPath() const noexcept {
return path.c_str();
}

View File

@@ -76,7 +76,7 @@ public:
const ConfigBlock &block);
gcc_pure
Directory &GetRoot() {
Directory &GetRoot() noexcept {
assert(root != NULL);
return *root;
@@ -125,7 +125,7 @@ public:
DatabaseStats GetStats(const DatabaseSelection &selection) const override;
time_t GetUpdateStamp() const override {
time_t GetUpdateStamp() const noexcept override {
return mtime;
}

View File

@@ -60,7 +60,7 @@ public:
* Parent's ObjectId
*/
std::string parent_id;
std::string url;
/**
@@ -80,7 +80,7 @@ public:
UPnPDirObject &operator=(UPnPDirObject &&) = default;
void Clear() {
void Clear() noexcept {
id.clear();
parent_id.clear();
url.clear();
@@ -90,7 +90,7 @@ public:
}
gcc_pure
bool Check() const {
bool Check() const noexcept {
return !id.empty() && !parent_id.empty() && !name.empty() &&
(type != UPnPDirObject::Type::ITEM ||
item_class != UPnPDirObject::ItemClass::UNKNOWN);

View File

@@ -93,7 +93,7 @@ public:
DatabaseStats GetStats(const DatabaseSelection &selection) const override;
time_t GetUpdateStamp() const override {
time_t GetUpdateStamp() const noexcept override {
return 0;
}