summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-07-27 10:15:11 +0200
committerLioncash <mathew1800@gmail.com>2021-07-27 10:15:14 +0200
commitc27ddb44de04d171b992c679875d98bb51806822 (patch)
tree56223d2e75bb697a6c063cb71e3a75c65f68a3de /src
parentexception: Make what() member function nodiscard (diff)
downloadyuzu-c27ddb44de04d171b992c679875d98bb51806822.tar
yuzu-c27ddb44de04d171b992c679875d98bb51806822.tar.gz
yuzu-c27ddb44de04d171b992c679875d98bb51806822.tar.bz2
yuzu-c27ddb44de04d171b992c679875d98bb51806822.tar.lz
yuzu-c27ddb44de04d171b992c679875d98bb51806822.tar.xz
yuzu-c27ddb44de04d171b992c679875d98bb51806822.tar.zst
yuzu-c27ddb44de04d171b992c679875d98bb51806822.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/exception.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/exception.h b/src/shader_recompiler/exception.h
index 997169756..277be8541 100644
--- a/src/shader_recompiler/exception.h
+++ b/src/shader_recompiler/exception.h
@@ -36,21 +36,21 @@ private:
class LogicError : public Exception {
public:
template <typename... Args>
- LogicError(const char* message, Args&&... args)
+ explicit LogicError(const char* message, Args&&... args)
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};
class RuntimeError : public Exception {
public:
template <typename... Args>
- RuntimeError(const char* message, Args&&... args)
+ explicit RuntimeError(const char* message, Args&&... args)
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};
class NotImplementedException : public Exception {
public:
template <typename... Args>
- NotImplementedException(const char* message, Args&&... args)
+ explicit NotImplementedException(const char* message, Args&&... args)
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {
Append(" is not implemented");
}
@@ -59,7 +59,7 @@ public:
class InvalidArgument : public Exception {
public:
template <typename... Args>
- InvalidArgument(const char* message, Args&&... args)
+ explicit InvalidArgument(const char* message, Args&&... args)
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};