summaryrefslogtreecommitdiff
path: root/src/resources/map
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/map
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/map')
-rw-r--r--src/resources/map/mapitem.h14
-rw-r--r--src/resources/map/tileset.h5
2 files changed, 10 insertions, 9 deletions
diff --git a/src/resources/map/mapitem.h b/src/resources/map/mapitem.h
index 0f9499d24..949eae9ea 100644
--- a/src/resources/map/mapitem.h
+++ b/src/resources/map/mapitem.h
@@ -46,29 +46,29 @@ class MapItem final
~MapItem();
- int getType() const A_WARN_UNUSED
+ int getType() const noexcept2 A_WARN_UNUSED
{ return mType; }
void setType(const int type);
void setPos(const int x, const int y);
- int getX() const A_WARN_UNUSED
+ int getX() const noexcept2 A_WARN_UNUSED
{ return mX; }
- int getY() const A_WARN_UNUSED
+ int getY() const noexcept2 A_WARN_UNUSED
{ return mY; }
- const std::string &getComment() const A_WARN_UNUSED
+ const std::string &getComment() const noexcept2 A_WARN_UNUSED
{ return mComment; }
- void setComment(const std::string &comment)
+ void setComment(const std::string &comment) noexcept2
{ mComment = comment; }
- const std::string &getName() const A_WARN_UNUSED
+ const std::string &getName() const noexcept2 A_WARN_UNUSED
{ return mName; }
- void setName(const std::string &name)
+ void setName(const std::string &name) noexcept2
{ mName = name; }
void draw(Graphics *const graphics,
diff --git a/src/resources/map/tileset.h b/src/resources/map/tileset.h
index 93ff16c2d..a2ded3596 100644
--- a/src/resources/map/tileset.h
+++ b/src/resources/map/tileset.h
@@ -53,13 +53,14 @@ class Tileset final : public ImageSet
/**
* Returns the first gid.
*/
- int getFirstGid() const A_WARN_UNUSED
+ int getFirstGid() const noexcept2 A_WARN_UNUSED
{ return mFirstGid; }
/**
* Set tileset property.
*/
- void setProperties(const std::map<std::string, std::string> &props)
+ void setProperties(const std::map<std::string,
+ std::string> &props) noexcept2
{ mProperties = props; }
/**