From 7f27eabadac0ab4a2c3ef3dce90e74b8e5430ec9 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 1 Jan 2025 15:27:37 +0100 Subject: [PATCH] Change function type The return value is never used. --- src/frontends/qt/GuiErrorList.cpp | 7 +++---- src/frontends/qt/GuiErrorList.h | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt/GuiErrorList.cpp b/src/frontends/qt/GuiErrorList.cpp index 703c7150a3..68e6a3e7eb 100644 --- a/src/frontends/qt/GuiErrorList.cpp +++ b/src/frontends/qt/GuiErrorList.cpp @@ -161,22 +161,21 @@ bool GuiErrorList::initialiseParams(string const & sdata) } -bool GuiErrorList::goTo(int item) +void GuiErrorList::goTo(int item) { ErrorItem const & err = errorList()[item]; if (TexRow::isNone(err.start)) - return false; + return; Buffer const * errbuf = err.buffer ? err.buffer : buf_; if (&buffer() != errbuf) { if (!theBufferList().isLoaded(errbuf)) - return false; + return; FuncRequest fr(LFUN_BUFFER_SWITCH, errbuf->absFileName()); dispatch(fr); } dispatch(TexRow::goToFunc(err.start, err.end)); - return true; } diff --git a/src/frontends/qt/GuiErrorList.h b/src/frontends/qt/GuiErrorList.h index bc84888253..cc20ac9d73 100644 --- a/src/frontends/qt/GuiErrorList.h +++ b/src/frontends/qt/GuiErrorList.h @@ -50,8 +50,8 @@ private: /// bool canApply() const override { return true; } - /// goto this error in the parent bv. Returns success. - bool goTo(int item); + /// goto this error in the parent bv. + void goTo(int item); /// ErrorList const & errorList() const; private: