Skip to content

Commit ccc1d6f

Browse files
author
g_j_m
committed
No need to create a copy of the vector - a ref will do
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5224 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f55c41e commit ccc1d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsattributetable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ void QgsAttributeTable::putFeatureInTable(int row, QgsFeature* fet)
506506
int id = fet->featureId();
507507
setText(row, 0, QString::number(id));
508508
insertFeatureId(id, row); //insert the id into the search tree of qgsattributetable
509-
std::vector < QgsFeatureAttribute > attr = fet->attributeMap();
509+
const std::vector < QgsFeatureAttribute >& attr = fet->attributeMap();
510510
for (int i = 0; i < attr.size(); i++)
511511
{
512512
// get the field values

0 commit comments

Comments
 (0)