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:
Jean-Marc Lasgouttes 2008-03-13 10:28:02 +00:00
parent 0b21465259
commit 72c26ac6d1
3 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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)