Fix a couple of compilation issues with gcc 4.6. See bug #7285.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-02-07 22:47:02 +00:00
parent fcae022192
commit 4c55d02ec6
2 changed files with 2 additions and 2 deletions

View File

@ -76,9 +76,8 @@ bool GuiIdListModel::insertRows(int row, int count,
if (!rowIsValid(row))
return false;
vector<OurData>::iterator it = userData_.begin() + row;
OurData const v;
beginInsertRows(QModelIndex(), row, row + count - 1);
userData_.insert(it, count, v);
userData_.insert(it, count, OurData());
endInsertRows();
return true;
}

View File

@ -15,6 +15,7 @@
#include "support/strfwd.h"
#include <cstddef>
#include <vector>