Fix a number of other uninitialized members.

Fixes coverity #23392, 23394, 23397, 23403, 23414, 23424,
23448, 23477.
This commit is contained in:
Richard Heck 2016-06-11 23:39:45 -04:00
parent ae676958d9
commit 6675601147
9 changed files with 11 additions and 9 deletions

View File

@ -130,8 +130,8 @@ public:
/// Represent any of the above packages
static int const any;
///
Encoding() : fixedwidth_(true), unsafe_(false), start_encodable_(0),
package_(none), complete_(false) {}
Encoding() : fixedwidth_(true), unsafe_(false), forced_(0),
start_encodable_(0), package_(none), complete_(false) {}
///
Encoding(std::string const & n, std::string const & l,
std::string const & g, std::string const & i,

View File

@ -264,7 +264,7 @@ void FancyLineEdit::setButtonFocusPolicy(Side side, Qt::FocusPolicy policy)
// IconButton - helper class to represent a clickable icon
IconButton::IconButton(QWidget *parent)
: QAbstractButton(parent), m_autoHide(false)
: QAbstractButton(parent), m_iconOpacity(0.0), m_autoHide(false)
{
setCursor(Qt::ArrowCursor);
setFocusPolicy(Qt::NoFocus);

View File

@ -89,7 +89,7 @@ static vector<lyx::docstring> to_docstring_vector(QStringList const & qlist)
GuiCitation::GuiCitation(GuiView & lv)
: DialogView(lv, "citation", qt_("Citation")),
params_(insetCode("citation"))
style_(0), params_(insetCode("citation"))
{
setupUi(this);

View File

@ -110,7 +110,7 @@ static void setAutoTextCB(QCheckBox * checkBox, QLineEdit * lineEdit,
GuiGraphics::GuiGraphics(GuiView & lv)
: GuiDialog(lv, "graphics", qt_("Graphics"))
: GuiDialog(lv, "graphics", qt_("Graphics")), bbChanged(false)
{
setupUi(this);

View File

@ -1825,6 +1825,7 @@ void TabWorkArea::closeTab(int index)
class DisplayPath {
public:
/// make vector happy
// coverity[UNINIT_CTOR]
DisplayPath() {}
///
DisplayPath(int tab, FileName const & filename)

View File

@ -334,7 +334,7 @@ typedef boost::function<TransformCommand::ptr_type(RotationData)>
class TransformStore
{
public:
TransformStore() {}
TransformStore() : id(Rotate) {}
/** Stores \c factory and a reminder of what \c data this \c factory
* operates on.

View File

@ -51,7 +51,8 @@ namespace lyx {
InsetCaption::InsetCaption(Buffer * buf, string const & type)
: InsetText(buf, InsetText::PlainLayout), type_(type)
: InsetText(buf, InsetText::PlainLayout),
labelwidth_(0), is_subfloat_(false), type_(type)
{
setDrawFrame(true);
setFrameColor(Color_collapsableframe);

View File

@ -171,7 +171,7 @@ docstring InsetPrintNomencl::screenLabel() const
struct NomenclEntry {
NomenclEntry() {}
NomenclEntry() : par(0) {}
NomenclEntry(docstring s, docstring d, Paragraph const * p)
: symbol(s), desc(d), par(p)
{}

View File

@ -169,7 +169,7 @@ void InsetMathDecoration::infoize(odocstream & os) const
namespace {
struct Attributes {
Attributes() {}
Attributes() : over(false) {}
Attributes(bool o, string t)
: over(o), tag(t) {}
bool over;