mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +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()
|
||||
: initial_value_(0)
|
||||
: initial_value_(0), saved_value_(0)
|
||||
{
|
||||
reset();
|
||||
}
|
||||
@ -42,7 +42,7 @@ Counter::Counter()
|
||||
|
||||
Counter::Counter(docstring const & mc, docstring const & ls,
|
||||
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)
|
||||
{
|
||||
reset();
|
||||
|
Loading…
Reference in New Issue
Block a user