mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Remove some useless expressions
Spotted by cppcheck
This commit is contained in:
parent
464d6262b1
commit
d9edf32b67
@ -1330,7 +1330,6 @@ docstring const BiblioInfo::getInfo(docstring const & key,
|
|||||||
return docstring(_("Bibliography entry not found!"));
|
return docstring(_("Bibliography entry not found!"));
|
||||||
BibTeXInfo const & data = it->second;
|
BibTeXInfo const & data = it->second;
|
||||||
BibTeXInfoList xrefptrs;
|
BibTeXInfoList xrefptrs;
|
||||||
vector<docstring> const xrefs = getXRefs(data);
|
|
||||||
for (docstring const & xref : getXRefs(data)) {
|
for (docstring const & xref : getXRefs(data)) {
|
||||||
BiblioInfo::const_iterator const xrefit = find(xref);
|
BiblioInfo::const_iterator const xrefit = find(xref);
|
||||||
if (xrefit != end())
|
if (xrefit != end())
|
||||||
|
@ -3185,7 +3185,6 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
|
|||||||
// however, the different coordinates of insets and paragraphs
|
// however, the different coordinates of insets and paragraphs
|
||||||
// needs to be updated.
|
// needs to be updated.
|
||||||
LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
|
LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
|
||||||
pi.full_repaint = false;
|
|
||||||
if (pain.isNull()) {
|
if (pain.isNull()) {
|
||||||
pi.full_repaint = true;
|
pi.full_repaint = true;
|
||||||
tm.draw(pi, 0, y);
|
tm.draw(pi, 0, y);
|
||||||
|
@ -581,7 +581,6 @@ Language const * getLanguage(Cursor const & cur, string const & lang)
|
|||||||
docstring resolveLayout(docstring layout, DocIterator const & dit)
|
docstring resolveLayout(docstring layout, DocIterator const & dit)
|
||||||
{
|
{
|
||||||
Paragraph const & par = dit.paragraph();
|
Paragraph const & par = dit.paragraph();
|
||||||
docstring const old_layout = par.layout().name();
|
|
||||||
DocumentClass const & tclass = dit.buffer()->params().documentClass();
|
DocumentClass const & tclass = dit.buffer()->params().documentClass();
|
||||||
|
|
||||||
if (layout.empty())
|
if (layout.empty())
|
||||||
|
@ -1996,7 +1996,6 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return doc_buffer->getStatus(cmd, flag);
|
return doc_buffer->getStatus(cmd, flag);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_BUFFER_EXPORT_AS:
|
case LFUN_BUFFER_EXPORT_AS:
|
||||||
|
Loading…
Reference in New Issue
Block a user