@@ -1085,12 +1085,12 @@ void Grid::makeInitialObstructions(odb::dbBlock* block,
10851085 if (box->getTechLayer () == nullptr ) {
10861086 for (auto * layer : block->getDb ()->getTech ()->getLayers ()) {
10871087 auto shape = std::make_shared<Shape>(layer, obs_rect, Shape::BLOCK_OBS);
1088- obs[layer].push_back (shape);
1088+ obs[layer].push_back (std::move ( shape) );
10891089 }
10901090 } else {
10911091 auto shape = std::make_shared<Shape>(
10921092 box->getTechLayer (), obs_rect, Shape::BLOCK_OBS);
1093- obs[box->getTechLayer ()].push_back (shape);
1093+ obs[box->getTechLayer ()].push_back (std::move ( shape) );
10941094 }
10951095 }
10961096
@@ -1148,7 +1148,7 @@ void Grid::makeInitialObstructions(odb::dbBlock* block,
11481148 = std::make_shared<Shape>(layer, geom->getBox (), Shape::BLOCK_OBS);
11491149 shape->generateObstruction ();
11501150 shape->setRect (shape->getRect ());
1151- obs[layer].push_back (shape);
1151+ obs[layer].push_back (std::move ( shape) );
11521152 }
11531153 }
11541154 }
@@ -1494,7 +1494,7 @@ ShapeVectorMap InstanceGrid::getInstanceObstructions(
14941494 transform.apply (obs_rect);
14951495 auto shape = std::make_shared<Shape>(layer, obs_rect, Shape::BLOCK_OBS);
14961496
1497- obs[layer].push_back (shape);
1497+ obs[layer].push_back (std::move ( shape) );
14981498 }
14991499
15001500 // generate obstructions based on pins
@@ -1567,15 +1567,15 @@ ShapeVectorMap InstanceGrid::getInstancePins(odb::dbInst* inst)
15671567 auto shape = std::make_shared<Shape>(
15681568 via_box->getTechLayer (), net, box_rect);
15691569 shape->setShapeType (Shape::FIXED);
1570- pins.push_back (shape);
1570+ pins.push_back (std::move ( shape) );
15711571 }
15721572 } else {
15731573 odb::Rect box_rect = box->getBox ();
15741574 transform.apply (box_rect);
15751575 auto shape
15761576 = std::make_shared<Shape>(box->getTechLayer (), net, box_rect);
15771577 shape->setShapeType (Shape::FIXED);
1578- pins.push_back (shape);
1578+ pins.push_back (std::move ( shape) );
15791579 }
15801580 }
15811581 }
0 commit comments