Skip to content
Permalink
Browse files

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
  • Loading branch information
g_j_m
g_j_m committed Apr 8, 2006
1 parent f55c41e commit ccc1d6f12efce1c004c9ea52d7ba850449c6da0d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributetable.cpp
@@ -506,7 +506,7 @@ void QgsAttributeTable::putFeatureInTable(int row, QgsFeature* fet)
int id = fet->featureId();
setText(row, 0, QString::number(id));
insertFeatureId(id, row); //insert the id into the search tree of qgsattributetable
std::vector < QgsFeatureAttribute > attr = fet->attributeMap();
const std::vector < QgsFeatureAttribute >& attr = fet->attributeMap();
for (int i = 0; i < attr.size(); i++)
{
// get the field values

0 comments on commit ccc1d6f

Please sign in to comment.
You can’t perform that action at this time.