Skip to content

Commit

Permalink
coverity: fix some warnings...
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Alonso(fr) committed Apr 4, 2020
1 parent 08cebb4 commit 710bcf9
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/STOFFChart.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ public:
};
//! constructor
Serie();
Serie(Serie const &)=default;
Serie(Serie &&)=default;
Serie &operator=(Serie const &)=default;
Serie &operator=(Serie &&)=default;
//! destructor
virtual ~Serie();
//! return true if the serie style is 1D
Expand Down
4 changes: 4 additions & 0 deletions src/lib/STOFFFont.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public:
, m_lineBreak(false)
{
}
STOFFFont(STOFFFont const &)=default;
STOFFFont(STOFFFont &&)=default;
STOFFFont &operator=(STOFFFont const &)=default;
STOFFFont &operator=(STOFFFont &&)=default;
/** destructor */
~STOFFFont();
//! add to the propList
Expand Down
4 changes: 4 additions & 0 deletions src/lib/STOFFGraphicListener.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ struct GraphicState {
, m_section()
{
}
GraphicState(GraphicState const &)=default;
GraphicState(GraphicState &&)=default;
GraphicState &operator=(GraphicState const &)=default;
GraphicState &operator=(GraphicState &&)=default;
//! destructor
~GraphicState()
{
Expand Down
4 changes: 4 additions & 0 deletions src/lib/STOFFList.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ struct STOFFListLevel {
, m_startValue(0)
{
}
STOFFListLevel(STOFFListLevel const &)=default;
STOFFListLevel(STOFFListLevel &&)=default;
STOFFListLevel &operator=(STOFFListLevel const &)=default;
STOFFListLevel &operator=(STOFFListLevel &&)=default;
/** destructor */
~STOFFListLevel();

Expand Down
4 changes: 4 additions & 0 deletions src/lib/STOFFPageSpan.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public:
public:
//! constructor
STOFFPageSpan();
STOFFPageSpan(STOFFPageSpan const &)=default;
STOFFPageSpan(STOFFPageSpan &&)=default;
STOFFPageSpan &operator=(STOFFPageSpan const &)=default;
STOFFPageSpan &operator=(STOFFPageSpan &&)=default;
//! destructor
~STOFFPageSpan();

Expand Down
5 changes: 5 additions & 0 deletions src/lib/STOFFSection.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public:
: m_propertyList()
{
}
STOFFSection(STOFFSection const &)=default;
STOFFSection(STOFFSection &&)=default;
STOFFSection &operator=(STOFFSection const &)=default;
STOFFSection &operator=(STOFFSection &&)=default;

//! destructor
~STOFFSection();
//! returns the number of columns
Expand Down
4 changes: 4 additions & 0 deletions src/lib/libstaroffice_internal.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ struct STOFFEmbeddedObject {
{
add(binaryData, type);
}
STOFFEmbeddedObject(STOFFEmbeddedObject const &)=default;
STOFFEmbeddedObject(STOFFEmbeddedObject &&)=default;
STOFFEmbeddedObject &operator=(STOFFEmbeddedObject const &)=default;
STOFFEmbeddedObject &operator=(STOFFEmbeddedObject &&)=default;
//! destructor
~STOFFEmbeddedObject();
//! return true if the picture contains no data
Expand Down

0 comments on commit 710bcf9

Please sign in to comment.