Skip to content

Commit

Permalink
No need to create a copy of the vector - a ref will do
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5224 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 8, 2006
1 parent f65d068 commit 1b77802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributetable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b77802

Please sign in to comment.