Fix a compiling error by adding noexcept
This commit is contained in:
parent
5328cc7bbe
commit
d11f10ea1e
@ -11,7 +11,7 @@ public:
|
|||||||
exceptionCause = cause;
|
exceptionCause = cause;
|
||||||
QLOG_ERROR() << "Exception: " + cause;
|
QLOG_ERROR() << "Exception: " + cause;
|
||||||
};
|
};
|
||||||
virtual ~MMCError(){};
|
virtual ~MMCError() noexcept {}
|
||||||
virtual const char *what() const noexcept
|
virtual const char *what() const noexcept
|
||||||
{
|
{
|
||||||
return exceptionCause.toLocal8Bit();
|
return exceptionCause.toLocal8Bit();
|
||||||
|
@ -15,7 +15,7 @@ class JSONValidationError : public MMCError
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
JSONValidationError(QString cause) : MMCError(cause) {};
|
JSONValidationError(QString cause) : MMCError(cause) {};
|
||||||
virtual ~JSONValidationError() {};
|
virtual ~JSONValidationError() noexcept {}
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace MMCJson
|
namespace MMCJson
|
||||||
|
@ -13,7 +13,7 @@ class VersionBuildError : public MMCError
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VersionBuildError(QString cause) : MMCError(cause) {};
|
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).")
|
"version of the vanilla launcher than this version of MultiMC supports (%2).")
|
||||||
.arg(actual)
|
.arg(actual)
|
||||||
.arg(supported)) {};
|
.arg(supported)) {};
|
||||||
virtual ~LauncherVersionError() {};
|
virtual ~LauncherVersionError() noexcept {}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,7 +43,7 @@ public:
|
|||||||
.arg(fileId)
|
.arg(fileId)
|
||||||
.arg(mcVersion)
|
.arg(mcVersion)
|
||||||
.arg(parentMcVersion)) {};
|
.arg(parentMcVersion)) {};
|
||||||
virtual ~MinecraftVersionMismatch() {};
|
virtual ~MinecraftVersionMismatch() noexcept {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RawLibrary;
|
struct RawLibrary;
|
||||||
@ -124,4 +124,4 @@ public: /* data */
|
|||||||
QList<RawLibraryPtr> overwriteLibs;
|
QList<RawLibraryPtr> overwriteLibs;
|
||||||
QList<RawLibraryPtr> addLibs;
|
QList<RawLibraryPtr> addLibs;
|
||||||
QList<QString> removeLibs;
|
QList<QString> removeLibs;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user