summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-31 18:06:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-01 10:01:44 +0200
commit9c9ff9e89fd50223b28f327d3a7e416ab0ae831f (patch)
tree8990680d8a5ab3cc961c1c3fe50313218f10c7a2 /oox
parent6b851810d43e4a9ea8119d97436f658593ff8f1b (diff)
clang-tidy:readability-redundant-member-init
Change-Id: I78339f1df1f0c55c7edaa552940b07d1ada3aeb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121386 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/core/relations.cxx3
-rw-r--r--oox/source/crypto/CryptTools.cxx5
-rw-r--r--oox/source/drawingml/diagram/diagramfragmenthandler.cxx2
-rw-r--r--oox/source/drawingml/shape.cxx5
-rw-r--r--oox/source/drawingml/textbodyproperties.cxx1
5 files changed, 3 insertions, 13 deletions
diff --git a/oox/source/core/relations.cxx b/oox/source/core/relations.cxx
index 986ffb1e38d0..9b29f20a1124 100644
--- a/oox/source/core/relations.cxx
+++ b/oox/source/core/relations.cxx
@@ -53,8 +53,7 @@ OUString createOfficeDocRelationTypeStrict(std::u16string_view rType)
}
Relations::Relations( const OUString& rFragmentPath )
- : maMap()
- , maFragmentPath( rFragmentPath )
+ : maFragmentPath( rFragmentPath )
{
}
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx
index 6baf1f98ae98..ee68a8a50815 100644
--- a/oox/source/crypto/CryptTools.cxx
+++ b/oox/source/crypto/CryptTools.cxx
@@ -349,7 +349,6 @@ Crypto::~Crypto()
// DECRYPT
Decrypt::Decrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type)
- : Crypto()
{
#if USE_TLS_OPENSSL + USE_TLS_NSS == 0
(void)key;
@@ -403,7 +402,6 @@ sal_uInt32 Decrypt::aes128ecb(std::vector<sal_uInt8>& output, std::vector<sal_uI
// ENCRYPT
Encrypt::Encrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type)
- : Crypto()
{
#if USE_TLS_OPENSSL + USE_TLS_NSS == 0
(void)key;
@@ -460,8 +458,7 @@ sal_Int32 getSizeForHashType(CryptoHashType eType)
} // end anonymous namespace
CryptoHash::CryptoHash(std::vector<sal_uInt8>& rKey, CryptoHashType eType)
- : Crypto()
- , mnHashSize(getSizeForHashType(eType))
+ : mnHashSize(getSizeForHashType(eType))
{
#if USE_TLS_OPENSSL
mpImpl->setupCryptoHashContext(rKey, eType);
diff --git a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
index fc2b7e8d80b8..16c8de50d6f5 100644
--- a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
+++ b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
@@ -101,7 +101,6 @@ DiagramQStylesFragmentHandler::DiagramQStylesFragmentHandler( XmlFilterBase& rFi
const OUString& rFragmentPath,
DiagramQStyleMap& rStylesMap ) :
FragmentHandler2( rFilter, rFragmentPath ),
- maStyleName(),
maStyleEntry(),
mrStylesMap( rStylesMap )
{}
@@ -173,7 +172,6 @@ ColorFragmentHandler::ColorFragmentHandler( ::oox::core::XmlFilterBase& rFilter,
const OUString& rFragmentPath,
DiagramColorMap& rColorsMap ) :
FragmentHandler2(rFilter,rFragmentPath),
- maColorName(),
maColorEntry(),
mrColorsMap(rColorsMap)
{}
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index fe38fa6b371d..abb6115b08c0 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -144,8 +144,7 @@ Shape::Shape( const char* pServiceName, bool bDefaultHeight )
}
Shape::Shape( const ShapePtr& pSourceShape )
-: maChildren()
-, mpTextBody(pSourceShape->mpTextBody)
+: mpTextBody(pSourceShape->mpTextBody)
, mpLinePropertiesPtr( pSourceShape->mpLinePropertiesPtr )
, mpShapeRefLinePropPtr( pSourceShape->mpShapeRefLinePropPtr )
, mpFillPropertiesPtr( pSourceShape->mpFillPropertiesPtr )
@@ -158,7 +157,6 @@ Shape::Shape( const ShapePtr& pSourceShape )
, mpShapeRefEffectPropPtr(pSourceShape->mpShapeRefEffectPropPtr)
, maShapeProperties( pSourceShape->maShapeProperties )
, mpMasterTextListStyle( pSourceShape->mpMasterTextListStyle )
-, mxShape()
, msServiceName( pSourceShape->msServiceName )
, msName( pSourceShape->msName )
, msInternalName( pSourceShape->msInternalName )
@@ -179,7 +177,6 @@ Shape::Shape( const ShapePtr& pSourceShape )
, mbLockedCanvas( pSourceShape->mbLockedCanvas )
, mbWps( pSourceShape->mbWps )
, mbTextBox( pSourceShape->mbTextBox )
-, maLinkedTxbxAttr()
, mbHasLinkedTxbx(false)
, maDiagramDoms( pSourceShape->maDiagramDoms )
, mnZOrder(pSourceShape->mnZOrder)
diff --git a/oox/source/drawingml/textbodyproperties.cxx b/oox/source/drawingml/textbodyproperties.cxx
index 7143f059a006..2ffa7de1085f 100644
--- a/oox/source/drawingml/textbodyproperties.cxx
+++ b/oox/source/drawingml/textbodyproperties.cxx
@@ -31,7 +31,6 @@ namespace oox::drawingml {
TextBodyProperties::TextBodyProperties()
: mbAnchorCtr(false)
, meVA( TextVerticalAdjust_TOP )
- , msPrst()
{
}