summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 09:22:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-08 10:37:11 +0000
commit7f40ed57eb921e491f2fb83c820cb453babd9843 (patch)
tree7268132b73225bc0a0828f91b8cf085b82b54fd5 /xmloff
parent9cae3a88587deaf22ee83b2e36487013a1220a3b (diff)
loplugin:constantparam in xmloff
Change-Id: I531dcf0861ab5a545eec16bf4aa92ac92eb9626e Reviewed-on: https://gerrit.libreoffice.org/23022 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx12
-rw-r--r--xmloff/source/text/txtparae.cxx15
2 files changed, 13 insertions, 14 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 9e04ef03cc6a..12f4a1477648 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1136,7 +1136,7 @@ void SvXMLExport::ImplExportSettings()
}
}
-void SvXMLExport::ImplExportStyles( bool )
+void SvXMLExport::ImplExportStyles()
{
CheckAttrList();
@@ -1166,7 +1166,7 @@ void SvXMLExport::ImplExportStyles( bool )
}
}
-void SvXMLExport::ImplExportAutoStyles( bool )
+void SvXMLExport::ImplExportAutoStyles()
{
// transfer style names (+ families) FROM other components (if appropriate)
OUString sStyleNames( "StyleNames" );
@@ -1192,7 +1192,7 @@ void SvXMLExport::ImplExportAutoStyles( bool )
}
}
-void SvXMLExport::ImplExportMasterStyles( bool )
+void SvXMLExport::ImplExportMasterStyles()
{
{
// <style:master-styles>
@@ -1443,15 +1443,15 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass )
// styles
if( mnExportFlags & SvXMLExportFlags::STYLES )
- ImplExportStyles( false );
+ ImplExportStyles();
// autostyles
if( mnExportFlags & SvXMLExportFlags::AUTOSTYLES )
- ImplExportAutoStyles( false );
+ ImplExportAutoStyles();
// masterstyles
if( mnExportFlags & SvXMLExportFlags::MASTERSTYLES )
- ImplExportMasterStyles( false );
+ ImplExportMasterStyles();
// content
if( mnExportFlags & SvXMLExportFlags::CONTENT )
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 7758c14d5ee9..b2c4320f8d6a 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -1356,8 +1356,7 @@ SvXMLExportPropertyMapper *XMLTextParagraphExport::CreateParaDefaultExtPropMappe
return new XMLTextExportPropertySetMapper( pPropMapper, rExport );
}
-void XMLTextParagraphExport::exportPageFrames( bool bAutoStyles,
- bool bIsProgress )
+void XMLTextParagraphExport::exportPageFrames( bool bIsProgress )
{
const TextContentSet& rTexts = pBoundFrameSets->GetTexts()->GetPageBoundContents();
const TextContentSet& rGraphics = pBoundFrameSets->GetGraphics()->GetPageBoundContents();
@@ -1366,19 +1365,19 @@ void XMLTextParagraphExport::exportPageFrames( bool bAutoStyles,
for(TextContentSet::const_iterator_t it = rTexts.getBegin();
it != rTexts.getEnd();
++it)
- exportTextFrame(*it, bAutoStyles, bIsProgress, true);
+ exportTextFrame(*it, false/*bAutoStyles*/, bIsProgress, true);
for(TextContentSet::const_iterator_t it = rGraphics.getBegin();
it != rGraphics.getEnd();
++it)
- exportTextGraphic(*it, bAutoStyles);
+ exportTextGraphic(*it, false/*bAutoStyles*/);
for(TextContentSet::const_iterator_t it = rEmbeddeds.getBegin();
it != rEmbeddeds.getEnd();
++it)
- exportTextEmbedded(*it, bAutoStyles);
+ exportTextEmbedded(*it, false/*bAutoStyles*/);
for(TextContentSet::const_iterator_t it = rShapes.getBegin();
it != rShapes.getEnd();
++it)
- exportShape(*it, bAutoStyles);
+ exportShape(*it, false/*bAutoStyles*/);
}
void XMLTextParagraphExport::exportFrameFrames(
@@ -3557,9 +3556,9 @@ void XMLTextParagraphExport::exportTextDeclarations(
pFieldExport->ExportFieldDeclarations(rText);
}
-void XMLTextParagraphExport::exportUsedDeclarations( bool bOnlyUsed )
+void XMLTextParagraphExport::exportUsedDeclarations()
{
- pFieldExport->SetExportOnlyUsedFieldDeclarations( bOnlyUsed );
+ pFieldExport->SetExportOnlyUsedFieldDeclarations( false/*bOnlyUsed*/ );
}
void XMLTextParagraphExport::exportTrackedChanges(bool bAutoStyles)