From d525859b23fd53d435886980cadcc2d914d46c61 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 11 Dec 2024 04:22:09 +0100 Subject: [PATCH] ADBC: fix Coverity Scan performance warnings --- ogr/ogrsf_frmts/adbc/ogradbclayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ogr/ogrsf_frmts/adbc/ogradbclayer.cpp b/ogr/ogrsf_frmts/adbc/ogradbclayer.cpp index 015abf34f567..88d89ffaa1a9 100644 --- a/ogr/ogrsf_frmts/adbc/ogradbclayer.cpp +++ b/ogr/ogrsf_frmts/adbc/ogradbclayer.cpp @@ -281,7 +281,8 @@ static void ParseGeoParquetColumn( geomColBBOX.osYMax = std::string(osPrefix) .append(OGRDuplicateCharacter(osYMax, '"')) .append("\""); - oMapGeomColumnToCoveringBBOXColumn[oColumn.GetName()] = geomColBBOX; + oMapGeomColumnToCoveringBBOXColumn[oColumn.GetName()] = + std::move(geomColBBOX); oSetCoveringBBoxColumn.insert(osBBOXColumn); } } @@ -404,7 +405,7 @@ void OGRADBCLayer::BuildLayerDefn(bool bInternalUse) // CPLDebug("ADBC", "%s -> %s", m_osBaseStatement.c_str(), osNewStatement.c_str()); if (ReplaceStatement(osNewStatement.c_str())) { - m_osModifiedBaseStatement = osNewStatement; + m_osModifiedBaseStatement = std::move(osNewStatement); } else {