summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-16 10:17:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-16 11:35:38 +0000
commit78f0d15893c56d7368ddd7ded4e70f2a3bb9d2f4 (patch)
tree2dc9a366e0854d852a17ef32ee819b00a6b61778 /include/xmloff
parent732476f2e3c10edf1776171605d8ce6c6b22338f (diff)
loplugin:constantparam in xmloff/
Change-Id: I376f1d4ac65de584f9caa6ba8e25e43216374112 Reviewed-on: https://gerrit.libreoffice.org/23295 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/XMLSettingsExportContext.hxx3
-rw-r--r--include/xmloff/XMLTextShapeStyleContext.hxx3
-rw-r--r--include/xmloff/nmspmap.hxx3
-rw-r--r--include/xmloff/numehelp.hxx5
-rw-r--r--include/xmloff/txtparae.hxx8
-rw-r--r--include/xmloff/xmlscripti.hxx1
-rw-r--r--include/xmloff/xmluconv.hxx4
7 files changed, 10 insertions, 17 deletions
diff --git a/include/xmloff/XMLSettingsExportContext.hxx b/include/xmloff/XMLSettingsExportContext.hxx
index e5052a1aea01..542333942a9c 100644
--- a/include/xmloff/XMLSettingsExportContext.hxx
+++ b/include/xmloff/XMLSettingsExportContext.hxx
@@ -39,8 +39,7 @@ namespace xmloff
virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName,
enum ::xmloff::token::XMLTokenEnum i_eValue ) = 0;
- virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName,
- const bool i_bIgnoreWhitespace ) = 0;
+ virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName ) = 0;
virtual void EndElement( const bool i_bIgnoreWhitespace ) = 0;
virtual void Characters( const OUString& i_rCharacters ) = 0;
diff --git a/include/xmloff/XMLTextShapeStyleContext.hxx b/include/xmloff/XMLTextShapeStyleContext.hxx
index cb86f79c0c50..b07f8fd40fb4 100644
--- a/include/xmloff/XMLTextShapeStyleContext.hxx
+++ b/include/xmloff/XMLTextShapeStyleContext.hxx
@@ -43,8 +43,7 @@ public:
XMLTextShapeStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
const OUString& rLName,
const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList,
- SvXMLStylesContext& rStyles, sal_uInt16 nFamily,
- bool bDefaultStyle = false );
+ SvXMLStylesContext& rStyles, sal_uInt16 nFamily );
virtual ~XMLTextShapeStyleContext();
virtual SvXMLImportContext *CreateChildContext(
diff --git a/include/xmloff/nmspmap.hxx b/include/xmloff/nmspmap.hxx
index 7bba1a662f3e..818ff1af0511 100644
--- a/include/xmloff/nmspmap.hxx
+++ b/include/xmloff/nmspmap.hxx
@@ -119,8 +119,7 @@ public:
/* This will replace the version with the unused 3rd default parameter */
sal_uInt16 _GetKeyByAttrName( const OUString& rAttrName,
- OUString *pLocalName = nullptr,
- bool bCache = true) const;
+ OUString *pLocalName = nullptr) const;
sal_uInt16 GetFirstKey() const;
sal_uInt16 GetNextKey( sal_uInt16 nOldKey ) const;
diff --git a/include/xmloff/numehelp.hxx b/include/xmloff/numehelp.hxx
index 8d5aeca272a6..060708f6f16b 100644
--- a/include/xmloff/numehelp.hxx
+++ b/include/xmloff/numehelp.hxx
@@ -44,10 +44,10 @@ struct XMLNumberFormat
{
}
- XMLNumberFormat(const OUString& sTempCurrency, sal_Int32 nTempFormat, sal_Int16 nTempType)
+ XMLNumberFormat(const OUString& sTempCurrency, sal_Int32 nTempFormat)
: sCurrency(sTempCurrency)
, nNumberFormat(nTempFormat)
- , nType(nTempType)
+ , nType(0)
, bIsStandard(false)
{
}
@@ -117,7 +117,6 @@ public:
void SetNumberFormatAttributes(const OUString& rValue,
const OUString& rCharacters,
bool bExportValue = true,
- bool bExportTypeAttribute = true,
sal_uInt16 nNamespace = XML_NAMESPACE_OFFICE);
};
diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx
index b6b273dc1779..ccf595bedf89 100644
--- a/include/xmloff/txtparae.hxx
+++ b/include/xmloff/txtparae.hxx
@@ -513,10 +513,9 @@ public:
void collectTextAutoStyles(
const css::uno::Reference< css::text::XText > & rText,
const css::uno::Reference< css::text::XTextSection > & rBaseSection,
- bool bIsProgress = false,
- bool bExportParagraph = true )
+ bool bIsProgress = false )
{
- exportText( rText, rBaseSection, true, bIsProgress, bExportParagraph );
+ exportText( rText, rBaseSection, true, bIsProgress, true/*bExportParagraph*/ );
}
// It the model implements the xAutoStylesSupplier interface, the automatic
@@ -546,10 +545,9 @@ public:
const css::uno::Reference< css::text::XText > & rText,
const css::uno::Reference< css::text::XTextSection > & rBaseSection,
bool bIsProgress = false,
- bool bExportParagraph = true,
TextPNS eExtensionNS = TextPNS::ODF)
{
- exportText( rText, rBaseSection, false, bIsProgress, bExportParagraph, eExtensionNS );
+ exportText( rText, rBaseSection, false, bIsProgress, true/*bExportParagraph*/, eExtensionNS );
}
void exportFramesBoundToPage( bool bIsProgress = false )
diff --git a/include/xmloff/xmlscripti.hxx b/include/xmloff/xmlscripti.hxx
index 1cbce08a7f97..464595d37aa1 100644
--- a/include/xmloff/xmlscripti.hxx
+++ b/include/xmloff/xmlscripti.hxx
@@ -35,7 +35,6 @@ private:
public:
XMLScriptContext( SvXMLImport& rImport,
- sal_uInt16 nPrfx,
const OUString& rLName,
const css::uno::Reference< css::frame::XModel>& rDocModel );
virtual ~XMLScriptContext();
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx
index 128dc726e231..9d22985cee83 100644
--- a/include/xmloff/xmluconv.hxx
+++ b/include/xmloff/xmluconv.hxx
@@ -145,10 +145,10 @@ public:
/** convert double number to string (using ::rtl::math) and DO
convert to export MapUnit using meCoreMeasureUnit/meXMLMeasureUnit */
void convertDouble(OUStringBuffer& rBuffer,
- double fNumber, bool bWriteUnits) const;
+ double fNumber) const;
/** convert string to double number (using ::rtl::math) and DO convert. */
- bool convertDouble(double& rValue, const OUString& rString, bool bLookForUnits) const;
+ bool convertDouble(double& rValue, const OUString& rString) const;
/** get the Null Date of the XModel and set it to the UnitConverter */
bool setNullDate (