fixed bug in debug dump of GxsIdDetails icon cache

This commit is contained in:
csoler 2021-02-24 20:55:42 +01:00
parent 1a4585ccee
commit d62506479e

View File

@ -441,7 +441,7 @@ void GxsIdDetails::debug_dumpImagesCache()
std::cerr << "Current icon cache:" << std::endl;
for(auto it:mDefaultIconCache)
for(const auto& it:mDefaultIconCache) // the & is important here, otherwise pairs are copied and isDetached() is always false!
{
std::cerr << " Identity " << it.first << ":" << std::endl;