mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 18:52:46 +00:00
Change function type
The return value is never used.
This commit is contained in:
parent
9a650644d7
commit
7f27eabada
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user