Change function type

The return value is never used.
This commit is contained in:
Juergen Spitzmueller 2025-01-01 15:27:37 +01:00
parent 9a650644d7
commit 7f27eabada
2 changed files with 5 additions and 6 deletions

View File

@ -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;
}

View File

@ -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: