commit ce4ee723b35b58688975a44aab2cb0dd18ff4908 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 16 22:25:01 2025 +0100
Comment out some code that is unreachable (spotted by Coverity Scan) --- src/frontends/qt/TocWidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/TocWidget.cpp b/src/frontends/qt/TocWidget.cpp index c91a3b728c..95dd9f0e90 100644 --- a/src/frontends/qt/TocWidget.cpp +++ b/src/frontends/qt/TocWidget.cpp @@ -632,7 +632,8 @@ bool TocWidget::isAncestor(QModelIndex const & ancestor, return false; mi = mi.parent(); } - return false; + // unreachable + // return false; } @@ -644,7 +645,8 @@ QModelIndex TocWidget::getAncestor(QModelIndex const & descendant) const return mi; mi = mi.parent(); } - return mi; + // unreachable + // return mi; } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs