mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix a number of other uninitialized members.
Fixes coverity #23392, 23394, 23397, 23403, 23414, 23424, 23448, 23477.
This commit is contained in:
parent
ae676958d9
commit
6675601147
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user