summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:43:02 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commit05457f3bf8fdfef2e334515424a9d6151e02b244 (patch)
treec7c4e16102fd122f751b5d01d7fe8e64184ec9a7 /xmloff
parent8dc5f89346fa0f6820d5fd0b1ad4092168967f12 (diff)
loplugin: defaultparams
Change-Id: I7989a91d8d67a15d3fef13391c5dbf06233f75e9
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx4
-rw-r--r--xmloff/source/core/xmlexp.cxx6
-rw-r--r--xmloff/source/draw/eventimp.cxx3
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
-rw-r--r--xmloff/source/forms/handler/vcl_date_handler.cxx2
-rw-r--r--xmloff/source/style/XMLFontAutoStylePool.cxx2
-rw-r--r--xmloff/source/style/xmlnumfe.cxx14
-rw-r--r--xmloff/source/style/xmlnumfi.cxx4
-rw-r--r--xmloff/source/style/xmlnumi.cxx4
-rw-r--r--xmloff/source/text/XMLAutoTextEventExport.cxx2
-rw-r--r--xmloff/source/text/txtflde.cxx13
11 files changed, 26 insertions, 30 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index e50c783d91dd..4d60557cc6c5 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -1125,7 +1125,7 @@ static OUString lcl_GetStringFromNumberSequence( const ::com::sun::star::uno::Se
{
if(bHasPredecessor)
aBuf.append( ' ' );
- aBuf.append( nIndex, 10 );
+ aBuf.append( nIndex );
bHasPredecessor = true;
}
}
@@ -1779,7 +1779,7 @@ void SchXMLExportHelper_Impl::exportTable()
mrExport.AddAttribute( XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_FLOAT );
mrExport.AddAttribute( XML_NAMESPACE_OFFICE, XML_VALUE, msString );
SvXMLElementExport aCell( mrExport, XML_NAMESPACE_TABLE, XML_TABLE_CELL, true, true );
- exportText( msString, false ); // do not convert tabs and lfs
+ exportText( msString ); // do not convert tabs and lfs
if( ( !bHasOwnData && aDataRangeIter != aDataRangeEndIter ) &&
( mbRowSourceColumns || (aColIt == aRowIt->begin()) ) )
{
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index a1fdce63dc5c..61c1c280a9a2 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -671,7 +671,7 @@ void SAL_CALL SvXMLExport::setSourceDocument( const uno::Reference< lang::XCompo
for( nIndex = 0; nIndex < nCount; ++nIndex, ++pPrefix )
{
if( xNamespaceMap->getByName( *pPrefix ) >>= aURL )
- _GetNamespaceMap().Add( *pPrefix, aURL, XML_NAMESPACE_UNKNOWN );
+ _GetNamespaceMap().Add( *pPrefix, aURL );
}
}
}
@@ -1608,7 +1608,7 @@ void SvXMLExport::_ExportScripts()
// export document events
Reference< document::XEventsSupplier > xEvents( GetModel(), UNO_QUERY );
- GetEventExport().Export( xEvents, true );
+ GetEventExport().Export( xEvents );
}
void SvXMLExport::_ExportFontDecls()
@@ -2232,7 +2232,7 @@ OUString SvXMLExport::GetRelativeReference(const OUString& rValue)
if( xUriRef->getScheme() == mpImpl->msPackageURIScheme )
{
sValue = INetURLObject::GetRelURL( msOrigFileName, sValue,
- INetURLObject::WAS_ENCODED, INetURLObject::DECODE_TO_IURI, RTL_TEXTENCODING_UTF8, INetURLObject::FSYS_DETECT);
+ INetURLObject::WAS_ENCODED, INetURLObject::DECODE_TO_IURI, RTL_TEXTENCODING_UTF8);
}
}
return sValue;
diff --git a/xmloff/source/draw/eventimp.cxx b/xmloff/source/draw/eventimp.cxx
index 49d6cdbc8601..5280d821c3c8 100644
--- a/xmloff/source/draw/eventimp.cxx
+++ b/xmloff/source/draw/eventimp.cxx
@@ -257,8 +257,7 @@ SdXMLEventContext::SdXMLEventContext( SvXMLImport& rImp, sal_uInt16 nPrfx, cons
const OUString &rTmp =
rImp.GetAbsoluteReference(sValue);
INetURLObject::translateToInternal( rTmp, msBookmark,
- INetURLObject::DECODE_UNAMBIGUOUS,
- RTL_TEXTENCODING_UTF8 );
+ INetURLObject::DECODE_UNAMBIGUOUS );
}
}
break;
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 28522458b60c..b1b7da3b952d 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -2279,7 +2279,7 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
// trying to preserve the filename for embedded images which already have its stream inside the package
bool bIsEmbeddedImageWithExistingStreamInPackage = false;
- if ( aStreamURL.match( sPackageURL, 0 ) )
+ if ( aStreamURL.match( sPackageURL ) )
{
bIsEmbeddedImageWithExistingStreamInPackage = true;
diff --git a/xmloff/source/forms/handler/vcl_date_handler.cxx b/xmloff/source/forms/handler/vcl_date_handler.cxx
index 3d3826c8d957..0df8f14dd3ab 100644
--- a/xmloff/source/forms/handler/vcl_date_handler.cxx
+++ b/xmloff/source/forms/handler/vcl_date_handler.cxx
@@ -59,7 +59,7 @@ namespace xmloff
aDateTime.Year = aDate.Year;
OUStringBuffer aBuffer;
- ::sax::Converter::convertDateTime( aBuffer, aDateTime, 0, false );
+ ::sax::Converter::convertDateTime( aBuffer, aDateTime, 0 );
return aBuffer.makeStringAndClear();
}
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx
index 04410018bda4..6f943832eed9 100644
--- a/xmloff/source/style/XMLFontAutoStylePool.cxx
+++ b/xmloff/source/style/XMLFontAutoStylePool.cxx
@@ -164,7 +164,7 @@ OUString XMLFontAutoStylePool::Add(
else
{
OUString sName;
- sal_Int32 nLen = rFamilyName.indexOf( ';', 0 );
+ sal_Int32 nLen = rFamilyName.indexOf( ';' );
if( -1 == nLen )
{
sName = rFamilyName;
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 535d136f3354..9730adb00076 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -925,7 +925,7 @@ static bool lcl_IsDefaultDateFormat( const SvNumberformat& rFormat, bool bSystem
short nLastType = 0;
while (!bEnd)
{
- short nElemType = rFormat.GetNumForType( 0, nPos, false );
+ short nElemType = rFormat.GetNumForType( 0, nPos );
switch ( nElemType )
{
case 0:
@@ -1190,8 +1190,8 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
bool bEnd = false;
while (!bEnd)
{
- short nElemType = rFormat.GetNumForType( nPart, nPos, false );
- const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos, false );
+ short nElemType = rFormat.GetNumForType( nPart, nPos );
+ const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos );
switch ( nElemType )
{
@@ -1260,8 +1260,8 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
bEnd = false;
while (!bEnd)
{
- short nElemType = rFormat.GetNumForType( nPart, nPos, false );
- const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos, false );
+ short nElemType = rFormat.GetNumForType( nPart, nPos );
+ const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos );
switch ( nElemType )
{
@@ -1308,8 +1308,8 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
bEnd = false;
while (!bEnd)
{
- short nElemType = rFormat.GetNumForType( nPart, nPos, false );
- const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos, false );
+ short nElemType = rFormat.GetNumForType( nPart, nPos );
+ const OUString* pElemStr = rFormat.GetNumForString( nPart, nPos );
switch ( nElemType )
{
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 49ad1aaa7674..12ea77d7ae1f 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1408,7 +1408,7 @@ SvXMLNumFormatContext::SvXMLNumFormatContext( SvXMLImport& rImport,
sal_Int32 nNatNum = pFormatter->GetNatNum()->convertFromXmlAttributes( aNatNumAttr );
aFormatCode.append( "[NatNum" );
- aFormatCode.append( nNatNum, 10 );
+ aFormatCode.append( nNatNum );
LanguageType eLang = aLanguageTag.getLanguageType( false);
if ( eLang == LANGUAGE_DONTKNOW )
@@ -1591,7 +1591,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert(SvNumberFormatter* pFormatter)
for (size_t i = 0; i < aMyConditions.size(); i++)
{
SvXMLNumFormatContext* pStyle = const_cast<SvXMLNumFormatContext*>( static_cast<const SvXMLNumFormatContext *>(pStyles->FindStyleChildContext(
- XML_STYLE_FAMILY_DATA_STYLE, aMyConditions[i].sMapName, false)));
+ XML_STYLE_FAMILY_DATA_STYLE, aMyConditions[i].sMapName)));
if (pStyle)
{
if ((pStyle->PrivateGetKey() > -1)) // don't reset pStyle's bRemoveAfterUse flag
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index 4fbd4f495556..492bf8085850 100644
--- a/xmloff/source/style/xmlnumi.cxx
+++ b/xmloff/source/style/xmlnumi.cxx
@@ -729,11 +729,11 @@ SvxXMLListLevelStyleAttrContext_Impl::SvxXMLListLevelStyleAttrContext_Impl(
sVerticalRel = rValue;
break;
case XML_TOK_STYLE_ATTRIBUTES_ATTR_WIDTH:
- if (rUnitConv.convertMeasureToCore(nVal, rValue, 0, SAL_MAX_INT32))
+ if (rUnitConv.convertMeasureToCore(nVal, rValue))
rListLevel.SetImageWidth( nVal );
break;
case XML_TOK_STYLE_ATTRIBUTES_ATTR_HEIGHT:
- if (rUnitConv.convertMeasureToCore(nVal, rValue, 0, SAL_MAX_INT32))
+ if (rUnitConv.convertMeasureToCore(nVal, rValue))
rListLevel.SetImageHeight( nVal );
break;
case XML_TOK_STYLE_ATTRIBUTES_ATTR_COLOR:
diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx
index c560bb109449..1497327d0d80 100644
--- a/xmloff/source/text/XMLAutoTextEventExport.cxx
+++ b/xmloff/source/text/XMLAutoTextEventExport.cxx
@@ -190,7 +190,7 @@ void XMLAutoTextEventExport::exportEvents()
{
DBG_ASSERT(hasEvents(), "no events to export!");
- GetEventExport().Export(xEvents, true);
+ GetEventExport().Export(xEvents);
}
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index a369b263ecc6..c20f22682603 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -1263,15 +1263,13 @@ void XMLTextFieldExport::ExportFieldHelper(
// no value -> current time
ProcessTimeOrDateTime(XML_TIME_VALUE,
GetDateTimeProperty(sPropertyDateTimeValue,
- rPropSet),
- XML_NAMESPACE_TEXT);
+ rPropSet));
}
if (xPropSetInfo->hasPropertyByName(sPropertyDateTime))
{
// no value -> current time
ProcessTimeOrDateTime(XML_TIME_VALUE,
- GetDateTimeProperty(sPropertyDateTime,rPropSet),
- XML_NAMESPACE_TEXT);
+ GetDateTimeProperty(sPropertyDateTime,rPropSet));
}
if (xPropSetInfo->hasPropertyByName(sPropertyIsFixed))
{
@@ -1817,13 +1815,12 @@ void XMLTextFieldExport::ExportFieldHelper(
ProcessString( XML_FORMULA, XML_NAMESPACE_OOOW,
GetStringProperty(sPropertyContent, rPropSet) );
ProcessDisplay( true,
- GetBoolProperty(sPropertyIsShowFormula, rPropSet),
- true );
+ GetBoolProperty(sPropertyIsShowFormula, rPropSet) );
ProcessValueAndType( false,
GetIntProperty(sPropertyNumberFormat, rPropSet),
sEmpty, sEmpty, 0.0f,
false, false, true,
- false, false );
+ false );
ExportElement( XML_TABLE_FORMULA, sPresentation );
break;
@@ -2347,7 +2344,7 @@ void XMLTextFieldExport::ExportMetaField(
ProcessValueAndType(false,
GetIntProperty(sPropertyNumberFormat, i_xMeta),
sEmpty, sEmpty, 0.0, false, false, true,
- false, false /*, sal_False*/ );
+ false );
// text:meta-field without xml:id is invalid
xMeta->ensureMetadataReference();