From d62506479e4fb15c3654c8b2aab4d17336f3b43c Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 24 Feb 2021 20:55:42 +0100 Subject: [PATCH] fixed bug in debug dump of GxsIdDetails icon cache --- retroshare-gui/src/gui/gxs/GxsIdDetails.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp b/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp index 60187e628..7ec21aa96 100644 --- a/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp +++ b/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp @@ -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;