diff --git a/MMCError.h b/MMCError.h index 7b2bd0c47..1f72b7a48 100644 --- a/MMCError.h +++ b/MMCError.h @@ -11,7 +11,7 @@ public: exceptionCause = cause; QLOG_ERROR() << "Exception: " + cause; }; - virtual ~MMCError(){}; + virtual ~MMCError() noexcept {} virtual const char *what() const noexcept { return exceptionCause.toLocal8Bit(); diff --git a/logic/MMCJson.h b/logic/MMCJson.h index f2cc4b310..71ded4354 100644 --- a/logic/MMCJson.h +++ b/logic/MMCJson.h @@ -15,7 +15,7 @@ class JSONValidationError : public MMCError { public: JSONValidationError(QString cause) : MMCError(cause) {}; - virtual ~JSONValidationError() {}; + virtual ~JSONValidationError() noexcept {} }; namespace MMCJson diff --git a/logic/VersionFile.h b/logic/VersionFile.h index 67d22b238..169a20664 100644 --- a/logic/VersionFile.h +++ b/logic/VersionFile.h @@ -13,7 +13,7 @@ class VersionBuildError : public MMCError { public: VersionBuildError(QString cause) : MMCError(cause) {}; - virtual ~VersionBuildError() {}; + virtual ~VersionBuildError() noexcept {} }; /** @@ -28,7 +28,7 @@ public: "version of the vanilla launcher than this version of MultiMC supports (%2).") .arg(actual) .arg(supported)) {}; - virtual ~LauncherVersionError() {}; + virtual ~LauncherVersionError() noexcept {} }; /** @@ -43,7 +43,7 @@ public: .arg(fileId) .arg(mcVersion) .arg(parentMcVersion)) {}; - virtual ~MinecraftVersionMismatch() {}; + virtual ~MinecraftVersionMismatch() noexcept {} }; struct RawLibrary; @@ -124,4 +124,4 @@ public: /* data */ QList overwriteLibs; QList addLibs; QList removeLibs; -}; \ No newline at end of file +};