Add a missing virtual destructor, fix a warning

This commit is contained in:
Henrik Rydgård 2018-05-30 18:01:49 +02:00
parent c59c3d6c34
commit 7e756544ee
2 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@ IdentifiedFileType Identify_File(FileLoader *fileLoader);
class FileLoaderFactory {
public:
virtual ~FileLoaderFactory() {}
virtual FileLoader *ConstructFileLoader(const std::string &filename) = 0;
};
void RegisterFileLoaderFactory(std::string name, std::unique_ptr<FileLoaderFactory> factory);

View File

@ -409,7 +409,7 @@ void ConvertFromRGBA8888(uint8_t *dst, const uint8_t *src, uint32_t dstStride, u
case Draw::DataFormat::R8G8B8A8_UNORM:
case Draw::DataFormat::UNDEFINED:
default:
WARN_LOG_REPORT_ONCE(convFromRGBA, G3D, "Unable to convert from format: %d", format);
WARN_LOG_REPORT_ONCE(convFromRGBA, G3D, "Unable to convert from format: %d", (int)format);
break;
}
}