VOXEL: palette::save is const now

master
Martin Gerhardy 2022-05-16 21:17:48 +02:00
parent 5a9e125874
commit f48b2be7b3
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ int Palette::getClosestMatch(const core::RGBA rgba, float *distance, int skip) c
return getClosestMatch(core::Color::fromRGBA(rgba), distance, skip);
}
bool Palette::save(const char *name) {
bool Palette::save(const char *name) const {
if (name == nullptr || name[0] == '\0') {
if (_paletteFilename.empty()) {
return false;

View File

@ -40,7 +40,7 @@ public:
return colorCount;
}
bool load(const char *name);
bool save(const char *name = nullptr);
bool save(const char *name = nullptr) const;
bool load(const uint8_t *rgbaBuf, size_t bufsize);
bool minecraft();