From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/resources/modinfo.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/resources/modinfo.h') diff --git a/src/resources/modinfo.h b/src/resources/modinfo.h index 1474f3484..8c006e980 100644 --- a/src/resources/modinfo.h +++ b/src/resources/modinfo.h @@ -33,28 +33,28 @@ class ModInfo final A_DELETE_COPY(ModInfo) - void setName(const std::string &name) + void setName(const std::string &name) noexcept2 { mName = name; } - const std::string &getName() const A_WARN_UNUSED + const std::string &getName() const noexcept2 A_WARN_UNUSED { return mName; } - void setDescription(const std::string &text) + void setDescription(const std::string &text) noexcept2 { mDescription = text; } - const std::string &getDescription() const A_WARN_UNUSED + const std::string &getDescription() const noexcept2 A_WARN_UNUSED { return mDescription; } - void setHelp(const std::string &text) + void setHelp(const std::string &text) noexcept2 { mHelp = text; } - const std::string &getHelp() const A_WARN_UNUSED + const std::string &getHelp() const noexcept2 A_WARN_UNUSED { return mHelp; } void setLocalDir(const std::string &text) { mLocalDir = text; } - const std::string &getLocalDir() const A_WARN_UNUSED + const std::string &getLocalDir() const noexcept2 A_WARN_UNUSED { return mLocalDir; } private: -- cgit v1.2.3-70-g09d2