mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix cppcheck initialization warnings
This commit is contained in:
parent
03395b7871
commit
41fda35c59
@ -61,10 +61,10 @@ public:
|
|||||||
: from(from_), to(to_)
|
: from(from_), to(to_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DocRange(Buffer const * buf)
|
DocRange(Buffer const * buf) :
|
||||||
|
from(doc_iterator_begin(buf)),
|
||||||
|
to(doc_iterator_end(buf))
|
||||||
{
|
{
|
||||||
from = doc_iterator_begin(buf);
|
|
||||||
to = doc_iterator_end(buf);
|
|
||||||
to.backwardPos();
|
to.backwardPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -671,9 +671,9 @@ ostream & operator<<(ostream & os, DocIterator const & dit)
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////
|
||||||
|
|
||||||
StableDocIterator::StableDocIterator(DocIterator const & dit)
|
StableDocIterator::StableDocIterator(DocIterator const & dit) :
|
||||||
|
data_(dit.internalData())
|
||||||
{
|
{
|
||||||
data_ = dit.internalData();
|
|
||||||
for (size_t i = 0, n = data_.size(); i != n; ++i)
|
for (size_t i = 0, n = data_.size(); i != n; ++i)
|
||||||
data_[i].inset_ = 0;
|
data_[i].inset_ = 0;
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,8 @@ struct InsetTablePosLess
|
|||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
InsetList::InsetList(InsetList const & il)
|
InsetList::InsetList(InsetList const & il) : list_(il.list_)
|
||||||
{
|
{
|
||||||
list_ = il.list_;
|
|
||||||
List::iterator it = list_.begin();
|
List::iterator it = list_.begin();
|
||||||
List::iterator end = list_.end();
|
List::iterator end = list_.end();
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
|
@ -23,7 +23,6 @@ namespace lyx {
|
|||||||
PrinterParams::PrinterParams()
|
PrinterParams::PrinterParams()
|
||||||
{
|
{
|
||||||
target = PRINTER;
|
target = PRINTER;
|
||||||
file_name = std::string();
|
|
||||||
all_pages = true;
|
all_pages = true;
|
||||||
from_page = 1;
|
from_page = 1;
|
||||||
to_page = 0;
|
to_page = 0;
|
||||||
|
@ -47,6 +47,8 @@ public:
|
|||||||
NO_DICTIONARY
|
NO_DICTIONARY
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SpellChecker() : change_number_(0) {}
|
||||||
|
|
||||||
virtual ~SpellChecker() {}
|
virtual ~SpellChecker() {}
|
||||||
|
|
||||||
/// does the spell check failed
|
/// does the spell check failed
|
||||||
|
@ -187,9 +187,8 @@ Text::Text(InsetText * owner, bool use_default_layout)
|
|||||||
|
|
||||||
|
|
||||||
Text::Text(InsetText * owner, Text const & text)
|
Text::Text(InsetText * owner, Text const & text)
|
||||||
: owner_(owner)
|
: owner_(owner), pars_(text.pars_)
|
||||||
{
|
{
|
||||||
pars_ = text.pars_;
|
|
||||||
ParagraphList::iterator const end = pars_.end();
|
ParagraphList::iterator const end = pars_.end();
|
||||||
ParagraphList::iterator it = pars_.begin();
|
ParagraphList::iterator it = pars_.begin();
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
|
Loading…
Reference in New Issue
Block a user