diff --git a/src/frontends/qt4/GuiIdListModel.cpp b/src/frontends/qt4/GuiIdListModel.cpp index 07b38708fa..a8d3107ba7 100644 --- a/src/frontends/qt4/GuiIdListModel.cpp +++ b/src/frontends/qt4/GuiIdListModel.cpp @@ -76,9 +76,8 @@ bool GuiIdListModel::insertRows(int row, int count, if (!rowIsValid(row)) return false; vector::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; } diff --git a/src/support/unicode.h b/src/support/unicode.h index 26d317e340..d8f443106e 100644 --- a/src/support/unicode.h +++ b/src/support/unicode.h @@ -15,6 +15,7 @@ #include "support/strfwd.h" +#include #include