Kaydet (Commit) 936ae2b2 authored tarafından Jochen Nitschke's avatar Jochen Nitschke

cppcheck: useInitializationList in writerfilter

Change-Id: I4bbd2b4d3a4bba23936bd25a02cff011448e66f9
Reviewed-on: https://gerrit.libreoffice.org/57453
Tested-by: Jenkins
Reviewed-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
üst ccec2722
...@@ -5292,12 +5292,15 @@ void DomainMapper_Impl::SetPageMarginTwip( PageMarElement eElement, sal_Int32 nV ...@@ -5292,12 +5292,15 @@ void DomainMapper_Impl::SetPageMarginTwip( PageMarElement eElement, sal_Int32 nV
PageMar::PageMar() PageMar::PageMar()
{ : top(ConversionHelper::convertTwipToMM100( sal_Int32(1440)))
header = footer = ConversionHelper::convertTwipToMM100(sal_Int32(720));
top = bottom = ConversionHelper::convertTwipToMM100( sal_Int32(1440));
// This is strange, the RTF spec says it's 1800, but it's clearly 1440 in Word // This is strange, the RTF spec says it's 1800, but it's clearly 1440 in Word
// OOXML seems not to specify a default value // OOXML seems not to specify a default value
right = left = ConversionHelper::convertTwipToMM100( sal_Int32(1440)); , right(ConversionHelper::convertTwipToMM100( sal_Int32(1440)))
, bottom(top)
, left(right)
, header(ConversionHelper::convertTwipToMM100(sal_Int32(720)))
, footer(header)
{
} }
......
...@@ -46,11 +46,11 @@ using namespace com::sun::star; ...@@ -46,11 +46,11 @@ using namespace com::sun::star;
PositionHandler::PositionHandler( std::pair<OUString, OUString>& rPositionOffsets, std::pair<OUString, OUString>& rAligns ) : PositionHandler::PositionHandler( std::pair<OUString, OUString>& rPositionOffsets, std::pair<OUString, OUString>& rAligns ) :
LoggedProperties("PositionHandler"), LoggedProperties("PositionHandler"),
m_nOrient(text::VertOrientation::NONE), m_nOrient(text::VertOrientation::NONE),
m_nRelation(text::RelOrientation::FRAME),
m_nPosition(0), m_nPosition(0),
m_rPositionOffsets(rPositionOffsets), m_rPositionOffsets(rPositionOffsets),
m_rAligns(rAligns) m_rAligns(rAligns)
{ {
m_nRelation = text::RelOrientation::FRAME;
} }
PositionHandler::~PositionHandler( ) PositionHandler::~PositionHandler( )
......
...@@ -555,8 +555,8 @@ OOXMLHexValue::OOXMLHexValue(sal_uInt32 nValue) ...@@ -555,8 +555,8 @@ OOXMLHexValue::OOXMLHexValue(sal_uInt32 nValue)
} }
OOXMLHexValue::OOXMLHexValue(const char * pValue) OOXMLHexValue::OOXMLHexValue(const char * pValue)
: mnValue(rtl_str_toUInt32(pValue, 16))
{ {
mnValue = rtl_str_toUInt32(pValue, 16);
} }
OOXMLHexValue::~OOXMLHexValue() OOXMLHexValue::~OOXMLHexValue()
......
...@@ -46,9 +46,9 @@ RTFValue::RTFValue(int nValue) ...@@ -46,9 +46,9 @@ RTFValue::RTFValue(int nValue)
: m_nValue(nValue) : m_nValue(nValue)
, m_pAttributes(new RTFSprms()) , m_pAttributes(new RTFSprms())
, m_pSprms(new RTFSprms()) , m_pSprms(new RTFSprms())
, m_pShape(new RTFShape())
, m_pPicture(new RTFPicture()) , m_pPicture(new RTFPicture())
{ {
m_pShape = new RTFShape();
} }
RTFValue::RTFValue(OUString sValue, bool bForce) RTFValue::RTFValue(OUString sValue, bool bForce)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment