mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 02:14:26 +02:00
fix KTX gcc errors
This commit is contained in:
parent
7a21466b68
commit
666be6912b
3 changed files with 4 additions and 7 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <list>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
|
||||
/* KTX Spec:
|
||||
|
|
|
@ -17,9 +17,7 @@ namespace ktx {
|
|||
class ReaderException: public std::exception {
|
||||
public:
|
||||
ReaderException(const std::string& explanation) : _explanation("KTX deserialization error: " + explanation) {}
|
||||
const char* what() const override {
|
||||
return _explanation.c_str();
|
||||
}
|
||||
const char* what() const noexcept override { return _explanation.c_str(); }
|
||||
private:
|
||||
const std::string _explanation;
|
||||
};
|
||||
|
@ -179,4 +177,4 @@ namespace ktx {
|
|||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,7 @@ namespace ktx {
|
|||
class WriterException : public std::exception {
|
||||
public:
|
||||
WriterException(const std::string& explanation) : _explanation("KTX serialization error: " + explanation) {}
|
||||
const char* what() const override {
|
||||
return _explanation.c_str();
|
||||
}
|
||||
const char* what() const noexcept override { return _explanation.c_str(); }
|
||||
private:
|
||||
const std::string _explanation;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue