]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIdListModel.cpp
Make a string translatable
[lyx.git] / src / frontends / qt4 / GuiIdListModel.cpp
index 929d5d3241327f41bde03ace0708e6115bb606c7..820517f4a1975bdad1518b1aa12308fa406f7e7d 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "GuiIdListModel.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 using std::vector;
 
@@ -65,8 +65,8 @@ bool GuiIdListModel::setData (QModelIndex const & index,
        }
        // If we assert here, it's because we're trying to set an
        // unrecognized role.
-       LASSERT(false, return false);
-       return false; // silence the warning
+       LATTEST(false);
+       return false;
 }
 
 
@@ -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;
 }