diff --git a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp index a377aebd2a8..506220a2cdf 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp +++ b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp @@ -60,7 +60,7 @@ std::unique_ptr GridRoot::makeCell(Float64 current_min_x, Float64 current children.push_back(makeCell(current_min_x, current_min_y, current_min_x + x_shift, current_min_y + y_shift, possible_ids, depth)); } } - return std::make_unique(children); + return std::make_unique(std::move(children)); } void GridRoot::setBoundingBox() diff --git a/dbms/src/Dictionaries/PolygonDictionaryUtils.h b/dbms/src/Dictionaries/PolygonDictionaryUtils.h index ca812d4873b..14e08ae3cff 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryUtils.h +++ b/dbms/src/Dictionaries/PolygonDictionaryUtils.h @@ -44,7 +44,6 @@ public: std::vector polygon_ids; private: - [[nodiscard]] const FinalCell * find(Float64 x, Float64 y) const override; };