From 828b42e4f1b156470107f0762d330ac2066b47ae Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 29 Sep 2016 22:48:34 +0300 Subject: [PATCH] Version 10008004: fixed Xcode build. --- Telegram/SourceFiles/ui/style/style_core_icon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/style/style_core_icon.h b/Telegram/SourceFiles/ui/style/style_core_icon.h index f8d384939..822a491a9 100644 --- a/Telegram/SourceFiles/ui/style/style_core_icon.h +++ b/Telegram/SourceFiles/ui/style/style_core_icon.h @@ -90,7 +90,7 @@ public: _parts.reserve(makeCopy.copyFrom._parts.size()); auto colorIt = makeCopy.colors.cbegin(), colorsEnd = makeCopy.colors.cend(); for_const (auto &part, makeCopy.copyFrom._parts) { - auto &newPart = part.clone((colorIt == colorsEnd) ? Color(Qt::Uninitialized) : *(colorIt++)); + auto newPart = part.clone((colorIt == colorsEnd) ? Color(Qt::Uninitialized) : *(colorIt++)); _parts.push_back(newPart); } }