Even simpler DeadlyErrorBase

This commit is contained in:
Malcolm Tyrrell
2020-08-19 17:59:13 +01:00
parent 6f9c61e157
commit 9b5e758bdd
2 changed files with 3 additions and 10 deletions

View File

@@ -48,11 +48,7 @@ Implementations of the exception classes.
#include <assimp/Exceptional.h>
#include <assimp/TinyFormatter.h>
DeadlyErrorBase::DeadlyErrorBase(const std::string& errorText)
: runtime_error(errorText)
{}
DeadlyErrorBase::DeadlyErrorBase(Assimp::Formatter::format f)
: DeadlyErrorBase(std::string(f))
: runtime_error(std::string(f))
{
}