mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Initialize properly Counter::saved_value_ member
Spotted by coverity.
This commit is contained in:
parent
5aadf0879f
commit
48d164ddef
@ -34,7 +34,7 @@ namespace lyx {
|
|||||||
|
|
||||||
|
|
||||||
Counter::Counter()
|
Counter::Counter()
|
||||||
: initial_value_(0)
|
: initial_value_(0), saved_value_(0)
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ Counter::Counter()
|
|||||||
|
|
||||||
Counter::Counter(docstring const & mc, docstring const & ls,
|
Counter::Counter(docstring const & mc, docstring const & ls,
|
||||||
docstring const & lsa, docstring const & guiname)
|
docstring const & lsa, docstring const & guiname)
|
||||||
: initial_value_(0), master_(mc), labelstring_(ls),
|
: initial_value_(0), saved_value_(0), master_(mc), labelstring_(ls),
|
||||||
labelstringappendix_(lsa), guiname_(guiname)
|
labelstringappendix_(lsa), guiname_(guiname)
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user