summaryrefslogtreecommitdiff
path: root/src/resources/resource.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
commitbebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch)
tree4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/resources/resource.h
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/resources/resource.h')
-rw-r--r--src/resources/resource.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h
index 009fff4a7..93dc72fb7 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -73,28 +73,28 @@ class Resource notfinal : public MemoryCounter
/**
* Return the path identifying this resource.
*/
- const std::string &getIdPath() const A_WARN_UNUSED
+ const std::string &getIdPath() const noexcept2 A_WARN_UNUSED
{ return mIdPath; }
/**
* Return refCount for this resource.
*/
- unsigned getRefCount() const A_WARN_UNUSED
+ unsigned getRefCount() const noexcept2 A_WARN_UNUSED
{ return mRefCount; }
- void setSource(const std::string &str)
+ void setSource(const std::string &str) noexcept2
{ mSource = str; }
- std::string getSource() const A_WARN_UNUSED
+ std::string getSource() const noexcept2 A_WARN_UNUSED
{ return mSource; }
- void setProtected(const bool b)
+ void setProtected(const bool b) noexcept2
{ mProtected = b; }
- bool isProtected() const
+ bool isProtected() const noexcept2
{ return mProtected; }
- void setNotCount(const bool b)
+ void setNotCount(const bool b) noexcept2
{ mNotCount = b; }
int calcMemoryLocal() const override;
@@ -103,10 +103,10 @@ class Resource notfinal : public MemoryCounter
{ return mIdPath + "-" + mSource; }
#ifdef DEBUG_DUMP_LEAKS
- bool getDumped() const A_WARN_UNUSED
+ bool getDumped() const noexcept2 A_WARN_UNUSED
{ return mDumped; }
- void setDumped(const bool n)
+ void setDumped(const bool n) noexcept2
{ mDumped = n; }
#endif // DEBUG_DUMP_LEAKS