Skip to content

Commit c0f75fd

Browse files
committed
Remove unnecessary move
1 parent 474156f commit c0f75fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geom.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class geometry_t
237237
constexpr geometry_t() = default;
238238

239239
constexpr explicit geometry_t(point_t &&geom, int srid = 4326)
240-
: m_geom(std::move(geom)), m_srid(srid)
240+
: m_geom(geom), m_srid(srid) // geom is trivially copyable, no move needed
241241
{}
242242

243243
constexpr explicit geometry_t(linestring_t &&geom, int srid = 4326)

0 commit comments

Comments
 (0)