summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 17:10:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 08:43:18 +0100
commit0b413caadfbe68b278ca5ba33b6d204687586ea9 (patch)
tree5eef1cc6046e0081b15b5643f83b92711fb761ef /xmloff
parente64baee9194f2bd3b7ad5e67fcab1102433fec9b (diff)
loplugin:constantparam in sal,sax
Change-Id: I7ca2fd05d1cf61f9038c529a853e72fedb1c9ed0 Reviewed-on: https://gerrit.libreoffice.org/44087 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLCalculationSettingsContext.cxx2
-rw-r--r--xmloff/source/core/DocumentSettingsContext.cxx2
-rw-r--r--xmloff/source/core/xmluconv.cxx2
-rw-r--r--xmloff/source/draw/ximppage.cxx2
-rw-r--r--xmloff/source/forms/handler/vcl_date_handler.cxx2
-rw-r--r--xmloff/source/text/XMLChangedRegionImportContext.cxx2
-rw-r--r--xmloff/source/text/txtflde.cxx2
-rw-r--r--xmloff/source/text/txtfldi.cxx7
-rw-r--r--xmloff/source/xforms/SchemaRestrictionContext.cxx2
9 files changed, 11 insertions, 12 deletions
diff --git a/xmloff/source/chart/SchXMLCalculationSettingsContext.cxx b/xmloff/source/chart/SchXMLCalculationSettingsContext.cxx
index a323fe0d2e44..7814a8b77a8f 100644
--- a/xmloff/source/chart/SchXMLCalculationSettingsContext.cxx
+++ b/xmloff/source/chart/SchXMLCalculationSettingsContext.cxx
@@ -51,7 +51,7 @@ SchXMLCalculationSettingsContext::SchXMLCalculationSettingsContext( SvXMLImport&
{
util::DateTime aNullDate;
const OUString sValue = xAttrList->getValueByIndex( i );
- ::sax::Converter::parseDateTime(aNullDate, nullptr, sValue);
+ ::sax::Converter::parseDateTime(aNullDate, sValue);
m_aNullDate <<= aNullDate;
}
}
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx
index 9b151366adb6..d53ce780fb5e 100644
--- a/xmloff/source/core/DocumentSettingsContext.cxx
+++ b/xmloff/source/core/DocumentSettingsContext.cxx
@@ -573,7 +573,7 @@ void XMLConfigItemContext::EndElement()
else if (IsXMLToken(msType, XML_DATETIME))
{
util::DateTime aDateTime;
- ::sax::Converter::parseDateTime(aDateTime, nullptr, msValue);
+ ::sax::Converter::parseDateTime(aDateTime, msValue);
mrAny <<= aDateTime;
}
else if (IsXMLToken(msType, XML_BASE64BINARY))
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index fb22fa8281b7..0285aa3f7a3f 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -433,7 +433,7 @@ bool SvXMLUnitConverter::convertDateTime( double& fDateTime,
const OUString& rString, const css::util::Date& aTempNullDate)
{
css::util::DateTime aDateTime;
- bool bSuccess = ::sax::Converter::parseDateTime(aDateTime, nullptr, rString);
+ bool bSuccess = ::sax::Converter::parseDateTime(aDateTime, rString);
if (bSuccess)
{
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx
index 8ee9a8754430..ddf42faee6b8 100644
--- a/xmloff/source/draw/ximppage.cxx
+++ b/xmloff/source/draw/ximppage.cxx
@@ -197,7 +197,7 @@ void DrawAnnotationContext::EndElement()
mxAnnotation->setInitials( maInitialsBuffer.makeStringAndClear() );
util::DateTime aDateTime;
- if (::sax::Converter::parseDateTime(aDateTime, nullptr,
+ if (::sax::Converter::parseDateTime(aDateTime,
maDateBuffer.makeStringAndClear()))
{
mxAnnotation->setDateTime(aDateTime);
diff --git a/xmloff/source/forms/handler/vcl_date_handler.cxx b/xmloff/source/forms/handler/vcl_date_handler.cxx
index 4dde7c21045f..ec518f9be94d 100644
--- a/xmloff/source/forms/handler/vcl_date_handler.cxx
+++ b/xmloff/source/forms/handler/vcl_date_handler.cxx
@@ -67,7 +67,7 @@ namespace xmloff
{
DateTime aDateTime;
Date aDate;
- if (::sax::Converter::parseDateTime( aDateTime, nullptr, i_attributeValue ))
+ if (::sax::Converter::parseDateTime( aDateTime, i_attributeValue ))
{
aDate.Day = aDateTime.Day;
aDate.Month = aDateTime.Month;
diff --git a/xmloff/source/text/XMLChangedRegionImportContext.cxx b/xmloff/source/text/XMLChangedRegionImportContext.cxx
index 29b118fcb08a..bf29d7390efd 100644
--- a/xmloff/source/text/XMLChangedRegionImportContext.cxx
+++ b/xmloff/source/text/XMLChangedRegionImportContext.cxx
@@ -159,7 +159,7 @@ void XMLChangedRegionImportContext::SetChangeInfo(
const OUString& rDate)
{
util::DateTime aDateTime;
- if (::sax::Converter::parseDateTime(aDateTime, nullptr, rDate))
+ if (::sax::Converter::parseDateTime(aDateTime, rDate))
{
GetImport().GetTextImport()->RedlineAdd(
rType, sID, rAuthor, rComment, aDateTime, bMergeLastPara);
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 6cc0690a35d7..620c69a6cc75 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2639,7 +2639,7 @@ void XMLTextFieldExport::ProcessTimeOrDateTime(enum XMLTokenEnum eName,
OUStringBuffer aBuffer;
// date/time value
- ::sax::Converter::convertTimeOrDateTime(aBuffer, rTime, nullptr);
+ ::sax::Converter::convertTimeOrDateTime(aBuffer, rTime);
// output attribute
ProcessString(eName, aBuffer.makeStringAndClear(), true);
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index b63071354564..d100263d2fcf 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -989,8 +989,7 @@ void XMLTimeFieldImportContext::ProcessAttribute(
{
case XML_TOK_TEXTFIELD_TIME_VALUE:
{
- if (::sax::Converter::parseTimeOrDateTime(aDateTimeValue, nullptr,
- sAttrValue))
+ if (::sax::Converter::parseTimeOrDateTime(aDateTimeValue, sAttrValue))
{
bTimeOK = true;
}
@@ -1108,7 +1107,7 @@ void XMLDateFieldImportContext::ProcessAttribute(
{
case XML_TOK_TEXTFIELD_DATE_VALUE:
{
- if (::sax::Converter::parseDateTime(aDateTimeValue, nullptr, sAttrValue))
+ if (::sax::Converter::parseDateTime(aDateTimeValue, sAttrValue))
{
bTimeOK = true;
}
@@ -3460,7 +3459,7 @@ void XMLAnnotationImportContext::PrepareField(
xPropertySet->setPropertyValue("Initials", makeAny(sInitials));
util::DateTime aDateTime;
- if (::sax::Converter::parseDateTime(aDateTime, nullptr,
+ if (::sax::Converter::parseDateTime(aDateTime,
aDateBuffer.makeStringAndClear()))
{
/*
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx
index 86a52ba9a09b..f3bb38fbc48d 100644
--- a/xmloff/source/xforms/SchemaRestrictionContext.cxx
+++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx
@@ -193,7 +193,7 @@ Any xforms_date( const OUString& rValue )
Any xforms_dateTime( const OUString& rValue )
{
util::DateTime aDateTime;
- bool const bSuccess = ::sax::Converter::parseDateTime(aDateTime, nullptr, rValue);
+ bool const bSuccess = ::sax::Converter::parseDateTime(aDateTime, rValue);
return bSuccess ? makeAny( aDateTime ) : Any();
}