MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addPaletteAlias

Method addPaletteAlias

framework/data.cpp:931–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929 this->imageSetAliases[name] = value;
930}
931void DataImpl::addPaletteAlias(const UString &name, const UString &value)
932{
933 std::lock_guard<std::recursive_mutex> l(this->paletteCacheLock);
934 LogAssert(name != value);
935 auto current = this->paletteAliases.find(name);
936 if (current != this->paletteAliases.end() && current->second != value)
937 {
938 LogWarning("Replacing alias \"%s\" - was \"%s\" now \"%s\"", name, current->second, value);
939 }
940 this->paletteAliases[name] = value;
941}
942void DataImpl::addVoxelSliceAlias(const UString &name, const UString &value)
943{
944 std::lock_guard<std::recursive_mutex> l(this->voxelCacheLock);

Callers 1

readAliasFileMethod · 0.95

Calls 1

endMethod · 0.80

Tested by

no test coverage detected