mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Replace coverity annotation by assertions
This commit is contained in:
parent
cb888293d4
commit
6b2444a7df
@ -3253,10 +3253,9 @@ void GuiView::dispatchVC(FuncRequest const & cmd, DispatchResult & dr)
|
||||
|
||||
string rev1 = cmd.getArg(0);
|
||||
string f1, f2;
|
||||
LATTEST(buffer)
|
||||
|
||||
// f1
|
||||
// it seems safe to assume we have a buffer
|
||||
// coverity[FORWARD_NULL]
|
||||
if (!buffer->lyxvc().prepareFileRevision(rev1, f1))
|
||||
break;
|
||||
|
||||
@ -4021,7 +4020,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
case LFUN_FORWARD_SEARCH: {
|
||||
// it seems safe to assume we have a document buffer, since
|
||||
// getStatus wants one.
|
||||
// coverity[FORWARD_NULL]
|
||||
LATTEST(doc_buffer);
|
||||
Buffer const * doc_master = doc_buffer->masterBuffer();
|
||||
FileName const path(doc_master->temppath());
|
||||
string const texname = doc_master->isChild(doc_buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user