Navigation Menu

Skip to content

Commit

Permalink
Add a missing virtual destructor, fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 30, 2018
1 parent c59c3d6 commit 7e75654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Core/Loaders.h
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/native/thin3d/thin3d.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 7e75654

Please sign in to comment.