mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
two uninitialized variables uncovered by valgrind, and a gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23707 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0b21465259
commit
72c26ac6d1
@ -73,6 +73,8 @@ private:
|
||||
/// Every instantiation is an array of counters of type Counter.
|
||||
class Counters {
|
||||
public:
|
||||
///
|
||||
Counters() : appendix_(false), subfloat_(false) {}
|
||||
/// Add a new counter to array.
|
||||
void newCounter(docstring const & newc);
|
||||
/// Add new counter having oldc as its master and ls as its label.
|
||||
|
@ -301,7 +301,7 @@ public:
|
||||
|
||||
///
|
||||
void drawDisplay(QPainter * painter, QStyleOptionViewItem const & opt,
|
||||
const QRect & rect, const QString & text ) const
|
||||
const QRect & /*rect*/, const QString & text ) const
|
||||
{
|
||||
QString utext = underlineFilter(text);
|
||||
|
||||
|
@ -29,6 +29,7 @@ namespace lyx {
|
||||
|
||||
InsetLayout::InsetLayout() :
|
||||
name_(from_ascii("undefined")), labelstring_(from_ascii("UNDEFINED")),
|
||||
decoration_(InsetLayout::Classic),
|
||||
font_(sane_font), labelfont_(sane_font), bgcolor_(Color_error),
|
||||
multipar_(false), passthru_(false), needprotect_(false),
|
||||
freespacing_(false), keepempty_(false), forceltr_(false)
|
||||
|
Loading…
Reference in New Issue
Block a user