From 83d05a4b50551ca796ecfd9b9339b16d709a9664 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Mon, 20 Jul 2020 11:24:47 +0300 Subject: [PATCH] [booking] review fixes for booking filters --- map/booking_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/map/booking_utils.cpp b/map/booking_utils.cpp index a135b06053..b6e632a7ed 100644 --- a/map/booking_utils.cpp +++ b/map/booking_utils.cpp @@ -16,7 +16,7 @@ namespace booking { namespace { -void SortTransform(search::Results && results, std::vector && extras, +void SortTransform(search::Results const & results, std::vector const & extras, std::vector & sortedFeatures, std::vector & sortedPrices) { if (!extras.empty()) @@ -27,8 +27,8 @@ void SortTransform(search::Results && results, std::vector && extras, featuresWithPrices.reserve(results.GetCount()); for (size_t i = 0; i < results.GetCount(); ++i) { - auto pricesFormatted = FormatPrice(extras[i].m_price, extras[i].m_currency); - featuresWithPrices.emplace_back(std::move(results[i].GetFeatureID()), std::move(pricesFormatted)); + auto priceFormatted = FormatPrice(extras[i].m_price, extras[i].m_currency); + featuresWithPrices.emplace_back(results[i].GetFeatureID(), std::move(priceFormatted)); } std::sort(featuresWithPrices.begin(), featuresWithPrices.end(),