From 9baad2553707a8e22dfca0f19a452728c05ec51f Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 19 Jan 2016 12:05:34 +0300 Subject: [PATCH] Performance fix in IsTypeConformed(). --- indexer/ftypes_matcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index 09adfa9465..6dcbf8a7a1 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -315,7 +315,7 @@ bool IsTypeConformed(uint32_t type, vector const & path) ASSERT(p, ()); uint8_t val = 0, i = 0; - for (auto const n : path) + for (auto const & n : path) { if (!ftype::GetValue(type, i, val)) return false;