Mac compile fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25241 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-12 17:34:01 +00:00
parent 04e8c050b2
commit d353a6f899
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ QModelIndex TocModel::modelIndex(DocIterator const & dit) const
if (toc_.empty())
return QModelIndex();
size_t const toc_index = toc_.item(dit) - toc_.begin();
unsigned int const toc_index = toc_.item(dit) - toc_.begin();
QModelIndexList list = match(index(0, 0), Qt::UserRole,
QVariant(toc_index), 1,
@ -66,7 +66,7 @@ TocModel::TocModel(Toc const & toc): toc_(toc)
mindepth_ = INT_MAX;
size_t end = toc.size();
for (size_t index = 0; index != end; ++index) {
for (unsigned int index = 0; index != end; ++index) {
TocItem const & item = toc_[index];
maxdepth_ = max(maxdepth_, item.depth());
mindepth_ = min(mindepth_, item.depth());
@ -89,7 +89,7 @@ TocModel::TocModel(Toc const & toc): toc_(toc)
}
void TocModel::populate(size_t & index, QModelIndex const & parent)
void TocModel::populate(unsigned int & index, QModelIndex const & parent)
{
int curdepth = toc_[index].depth() + 1;

View File

@ -42,7 +42,7 @@ public:
private:
///
void populate(size_t & index, QModelIndex const & parent);
void populate(unsigned int & index, QModelIndex const & parent);
///
QList<QModelIndex> toc_indexes_;
///