From d353a6f899906644298148a56b82cca62aac3365 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 12 Jun 2008 17:34:01 +0000 Subject: [PATCH] Mac compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25241 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/TocModel.cpp | 6 +++--- src/frontends/qt4/TocModel.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/TocModel.cpp b/src/frontends/qt4/TocModel.cpp index fc76950b37..cd6cd7058e 100644 --- a/src/frontends/qt4/TocModel.cpp +++ b/src/frontends/qt4/TocModel.cpp @@ -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; diff --git a/src/frontends/qt4/TocModel.h b/src/frontends/qt4/TocModel.h index 5b02eb28f3..efa4e56e10 100644 --- a/src/frontends/qt4/TocModel.h +++ b/src/frontends/qt4/TocModel.h @@ -42,7 +42,7 @@ public: private: /// - void populate(size_t & index, QModelIndex const & parent); + void populate(unsigned int & index, QModelIndex const & parent); /// QList toc_indexes_; ///