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

Method addImageSetAlias

framework/data.cpp:920–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918 this->imageAliases[name] = value;
919}
920void DataImpl::addImageSetAlias(const UString &name, const UString &value)
921{
922 std::lock_guard<std::recursive_mutex> l(this->imageSetCacheLock);
923 LogAssert(name != value);
924 auto current = this->imageSetAliases.find(name);
925 if (current != this->imageSetAliases.end() && current->second != value)
926 {
927 LogWarning("Replacing alias \"%s\" - was \"%s\" now \"%s\"", name, current->second, value);
928 }
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);

Callers 1

readAliasFileMethod · 0.95

Calls 1

endMethod · 0.80

Tested by

no test coverage detected