mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fixup 00c39208
: initialise ParagraphMetrics::id_ in default constructor
This was missing. Spotted by coverity.
This commit is contained in:
parent
3d03564a8d
commit
175bcc6efc
@ -29,7 +29,7 @@ class Paragraph;
|
|||||||
class ParagraphMetrics {
|
class ParagraphMetrics {
|
||||||
public:
|
public:
|
||||||
/// Default constructor (only here for STL containers).
|
/// Default constructor (only here for STL containers).
|
||||||
ParagraphMetrics() : position_(0), par_(0) {}
|
ParagraphMetrics() {}
|
||||||
/// The only useful constructor.
|
/// The only useful constructor.
|
||||||
explicit ParagraphMetrics(Paragraph const & par);
|
explicit ParagraphMetrics(Paragraph const & par);
|
||||||
|
|
||||||
@ -77,15 +77,15 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
int position_;
|
int position_ = 0;
|
||||||
///
|
///
|
||||||
int id_;
|
int id_ = -1;
|
||||||
///
|
///
|
||||||
mutable RowList rows_;
|
mutable RowList rows_;
|
||||||
/// cached dimensions of paragraph
|
/// cached dimensions of paragraph
|
||||||
Dimension dim_;
|
Dimension dim_;
|
||||||
///
|
///
|
||||||
Paragraph const * par_;
|
Paragraph const * par_ = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
Loading…
Reference in New Issue
Block a user