Skip to content

Commit

Permalink
ADBC: fix Coverity Scan performance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 11, 2024
1 parent a72535d commit d525859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ogr/ogrsf_frmts/adbc/ogradbclayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit d525859

Please sign in to comment.