maFraction in PPTWriterBase is static data
it is never modified Change-Id: I329e3bcbad1981dfe57f47b31dadea0a17ee81d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202376 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
b77068aac3
commit
e9698991ec
@@ -347,7 +347,6 @@ protected:
|
||||
sal_uInt32 mnMasterPages;
|
||||
sal_uInt32 mnCanvasMasterIndex;
|
||||
|
||||
Fraction maFraction;
|
||||
MapMode maMapModeSrc;
|
||||
MapMode maMapModeDest;
|
||||
css::awt::Size maDestPageSize;
|
||||
|
||||
@@ -103,6 +103,8 @@ PHLayout const pPHLayout[] =
|
||||
{ EppLayout::TWOCOLUMNSANDTITLE, { 0x0d, 0x16, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00 }, 0x16, 0x0d, 0x12, true, true, false }
|
||||
};
|
||||
|
||||
const Fraction gPPTFraction(1,576);
|
||||
|
||||
PPTWriterBase::PPTWriterBase()
|
||||
: mbStatusIndicator(false)
|
||||
, mbPresObj(false)
|
||||
@@ -113,9 +115,8 @@ PPTWriterBase::PPTWriterBase()
|
||||
, mnPages(0)
|
||||
, mnMasterPages(0)
|
||||
, mnCanvasMasterIndex(SAL_MAX_UINT32)
|
||||
, maFraction(1, 576)
|
||||
, maMapModeSrc(MapUnit::Map100thMM)
|
||||
, maMapModeDest(MapUnit::MapInch, Point(), maFraction, maFraction)
|
||||
, maMapModeDest(MapUnit::MapInch, Point(), gPPTFraction, gPPTFraction)
|
||||
, meLatestPageType(NORMAL)
|
||||
, mpStyleSheet(nullptr)
|
||||
{
|
||||
@@ -135,9 +136,8 @@ PPTWriterBase::PPTWriterBase( const rtl::Reference< SdXImpressDocument > & rXMod
|
||||
, mnPages(0)
|
||||
, mnMasterPages(0)
|
||||
, mnCanvasMasterIndex(SAL_MAX_UINT32)
|
||||
, maFraction(1, 576)
|
||||
, maMapModeSrc(MapUnit::Map100thMM)
|
||||
, maMapModeDest(MapUnit::MapInch, Point(), maFraction, maFraction)
|
||||
, maMapModeDest(MapUnit::MapInch, Point(), gPPTFraction, gPPTFraction)
|
||||
, meLatestPageType (NORMAL)
|
||||
, mpStyleSheet(nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user