mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 02:54:09 +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];
|
ErrorItem const & err = errorList()[item];
|
||||||
if (TexRow::isNone(err.start))
|
if (TexRow::isNone(err.start))
|
||||||
return false;
|
return;
|
||||||
|
|
||||||
Buffer const * errbuf = err.buffer ? err.buffer : buf_;
|
Buffer const * errbuf = err.buffer ? err.buffer : buf_;
|
||||||
|
|
||||||
if (&buffer() != errbuf) {
|
if (&buffer() != errbuf) {
|
||||||
if (!theBufferList().isLoaded(errbuf))
|
if (!theBufferList().isLoaded(errbuf))
|
||||||
return false;
|
return;
|
||||||
FuncRequest fr(LFUN_BUFFER_SWITCH, errbuf->absFileName());
|
FuncRequest fr(LFUN_BUFFER_SWITCH, errbuf->absFileName());
|
||||||
dispatch(fr);
|
dispatch(fr);
|
||||||
}
|
}
|
||||||
dispatch(TexRow::goToFunc(err.start, err.end));
|
dispatch(TexRow::goToFunc(err.start, err.end));
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ private:
|
|||||||
///
|
///
|
||||||
bool canApply() const override { return true; }
|
bool canApply() const override { return true; }
|
||||||
|
|
||||||
/// goto this error in the parent bv. Returns success.
|
/// goto this error in the parent bv.
|
||||||
bool goTo(int item);
|
void goTo(int item);
|
||||||
///
|
///
|
||||||
ErrorList const & errorList() const;
|
ErrorList const & errorList() const;
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user