Add a handful of missing fixes
parent
f527e56f22
commit
4c6652f5b0
|
@ -88,9 +88,7 @@ void DeleteAllBarePointers(std::vector<T> &x) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
B3DImporter::~B3DImporter() {
|
B3DImporter::~B3DImporter() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
bool B3DImporter::CanRead(const std::string &pFile, IOSystem * /*pIOHandler*/, bool /*checkSig*/) const {
|
bool B3DImporter::CanRead(const std::string &pFile, IOSystem * /*pIOHandler*/, bool /*checkSig*/) const {
|
||||||
|
|
|
@ -134,9 +134,7 @@ STLImporter::STLImporter() :
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor, private as well
|
// Destructor, private as well
|
||||||
STLImporter::~STLImporter() {
|
STLImporter::~STLImporter() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Returns whether the class can handle the format of the given file.
|
// Returns whether the class can handle the format of the given file.
|
||||||
|
|
|
@ -59,9 +59,7 @@ BaseProcess::BaseProcess() AI_NO_EXCEPT
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor, private as well
|
// Destructor, private as well
|
||||||
BaseProcess::~BaseProcess() {
|
BaseProcess::~BaseProcess() = default;
|
||||||
// nothing to do here
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void BaseProcess::ExecuteOnScene(Importer *pImp) {
|
void BaseProcess::ExecuteOnScene(Importer *pImp) {
|
||||||
|
|
|
@ -59,10 +59,7 @@ SGSpatialSort::SGSpatialSort()
|
||||||
}
|
}
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor
|
// Destructor
|
||||||
SGSpatialSort::~SGSpatialSort()
|
SGSpatialSort::~SGSpatialSort() = default;
|
||||||
{
|
|
||||||
// nothing to do here, everything destructs automatically
|
|
||||||
}
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void SGSpatialSort::Add(const aiVector3D& vPosition, unsigned int index,
|
void SGSpatialSort::Add(const aiVector3D& vPosition, unsigned int index,
|
||||||
unsigned int smoothingGroup)
|
unsigned int smoothingGroup)
|
||||||
|
|
|
@ -70,9 +70,7 @@ PretransformVertices::PretransformVertices() :
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor, private as well
|
// Destructor, private as well
|
||||||
PretransformVertices::~PretransformVertices() {
|
PretransformVertices::~PretransformVertices() = default;
|
||||||
// nothing to do here
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Returns whether the processing step is present in the given flag field.
|
// Returns whether the processing step is present in the given flag field.
|
||||||
|
|
|
@ -44,6 +44,4 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
using namespace ::Assimp;
|
using namespace ::Assimp;
|
||||||
|
|
||||||
AbstractImportExportBase::~AbstractImportExportBase() {
|
AbstractImportExportBase::~AbstractImportExportBase() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
|
@ -55,9 +55,7 @@ public:
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~TestProgressHandler() {
|
virtual ~TestProgressHandler() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Update(float percentage = -1.f) override {
|
bool Update(float percentage = -1.f) override {
|
||||||
mPercentage = percentage;
|
mPercentage = percentage;
|
||||||
|
@ -104,4 +102,4 @@ TEST_F(ExporterTest, ExporterIdTest) {
|
||||||
EXPECT_EQ(nullptr, desc) << "More exporters than claimed";
|
EXPECT_EQ(nullptr, desc) << "More exporters than claimed";
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -53,9 +53,7 @@ SceneDiffer::SceneDiffer()
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
SceneDiffer::~SceneDiffer() {
|
SceneDiffer::~SceneDiffer() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SceneDiffer::isEqual( const aiScene *expected, const aiScene *toCompare ) {
|
bool SceneDiffer::isEqual( const aiScene *expected, const aiScene *toCompare ) {
|
||||||
if ( expected == toCompare ) {
|
if ( expected == toCompare ) {
|
||||||
|
|
|
@ -69,7 +69,7 @@ TEST_F(BlendImportAreaLight, testImportLight) {
|
||||||
std::vector<std::pair<std::string, size_t>> lightNames;
|
std::vector<std::pair<std::string, size_t>> lightNames;
|
||||||
|
|
||||||
for (size_t i = 0; i < pTest->mNumLights; i++) {
|
for (size_t i = 0; i < pTest->mNumLights; i++) {
|
||||||
lightNames.push_back(std::make_pair(pTest->mLights[i]->mName.C_Str(), i));
|
lightNames.emplace_back(pTest->mLights[i]->mName.C_Str(), i);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::sort(lightNames.begin(), lightNames.end());
|
std::sort(lightNames.begin(), lightNames.end());
|
||||||
|
|
|
@ -55,9 +55,7 @@ public:
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
~TestObjFileParser() {
|
~TestObjFileParser() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
void testCopyNextWord(char *pBuffer, size_t length) {
|
void testCopyNextWord(char *pBuffer, size_t length) {
|
||||||
copyNextWord(pBuffer, length);
|
copyNextWord(pBuffer, length);
|
||||||
|
|
|
@ -55,9 +55,7 @@ public:
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
~ConsoleProgressHandler() override {
|
~ConsoleProgressHandler() override = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Update(float percentage) override {
|
bool Update(float percentage) override {
|
||||||
std::cout << percentage * 100.0f << " %\n";
|
std::cout << percentage * 100.0f << " %\n";
|
||||||
|
|
Loading…
Reference in New Issue