commit 731feb9f18ed5ad4d54ccedaf95078849784f978
Author: Richard Kimberly Heck <[email protected]>
Date:   Mon Feb 17 12:31:24 2020 -0500

    Silence some clang warnings.
---
 src/frontends/qt/TocModel.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/TocModel.cpp b/src/frontends/qt/TocModel.cpp
index e43b3df..1974422 100644
--- a/src/frontends/qt/TocModel.cpp
+++ b/src/frontends/qt/TocModel.cpp
@@ -126,8 +126,8 @@ QModelIndex TocModel::modelIndex(DocIterator const & dit) 
const
        if (toc_->empty())
                return QModelIndex();
 
-       unsigned int const toc_index = TocBackend::findItem(*toc_, dit) -
-                                      toc_->begin();
+       unsigned int const toc_index =
+               static_cast<unsigned int>(TocBackend::findItem(*toc_, dit) - 
toc_->begin());
 
        QModelIndexList list = model()->match(model()->index(0, 0), 
Qt::UserRole,
                QVariant(toc_index), 1,
@@ -283,7 +283,7 @@ QAbstractItemModel * TocModels::model(QString const & type)
        if (it != models_.end())
                return it.value()->model();
        LYXERR0("type not found: " << type);
-       return 0;
+       return nullptr;
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to