]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIdListModel.cpp
Fix handling of the add branch textfield in GuiBranches
[lyx.git] / src / frontends / qt4 / GuiIdListModel.cpp
index 17cab6b20ae0d2ee7bd0820c8ca8b5772009cd4f..a8d3107ba7a492ce381dd3771ab309f0718be9c0 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "GuiIdListModel.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 using std::vector;
 
@@ -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;
 }
@@ -138,20 +137,6 @@ int GuiIdListModel::findIDString(std::string const & idString)
        return -1;
 }
 
-
-#if 0
-// The following function is currently unused but is retained here in
-//   case it should at some point be useful.
-QStringList GuiIdListModel::getIDStringList() const
-{
-       QStringList qsl;
-       vector<OurData>::const_iterator it  = userData_.begin();
-       vector<OurData>::const_iterator end = userData_.end();
-       for (; it != end; ++it)
-               qsl.append(it->idString.toString());
-       return qsl;
-}
-#endif
 } // namespace frontend
 } // namespace lyx