summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-03 18:35:52 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-03 18:36:03 +0100
commit7fe8d9328c619523897aa0e84b4bb9f5ab11b743 (patch)
treee64e5d956d65dee4087e49a1ed8063a55383208a /xmloff
parentb524b0bd98e4f841c88b91bff4bd23e68897a501 (diff)
xmloff: drop unused OUStrings
Change-Id: I040e9a5c9e60a27aa82fd624cc01edfecf5cc8de
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLAutoStylePoolP.cxx1
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.cxx2
-rw-r--r--xmloff/source/core/xmlexp.cxx1
-rw-r--r--xmloff/source/draw/shapeexport2.cxx2
-rw-r--r--xmloff/source/meta/MetaExportComponent.cxx4
-rw-r--r--xmloff/source/style/MarkerStyle.cxx3
-rw-r--r--xmloff/source/style/xmlaustp.cxx2
-rw-r--r--xmloff/source/style/xmlexppr.cxx3
-rw-r--r--xmloff/source/style/xmlnumi.cxx1
-rw-r--r--xmloff/source/text/txtparae.cxx9
-rw-r--r--xmloff/source/transform/EventOASISTContext.cxx1
11 files changed, 2 insertions, 27 deletions
diff --git a/xmloff/source/chart/SchXMLAutoStylePoolP.cxx b/xmloff/source/chart/SchXMLAutoStylePoolP.cxx
index 5f59c346ca96..5660ec0d7682 100644
--- a/xmloff/source/chart/SchXMLAutoStylePoolP.cxx
+++ b/xmloff/source/chart/SchXMLAutoStylePoolP.cxx
@@ -54,7 +54,6 @@ void SchXMLAutoStylePoolP::exportStyleAttributes(
const SvXMLNamespaceMap& rNamespaceMap
) const
{
- const rtl::OUString sCDATA( GetXMLToken( XML_CDATA ));
SvXMLAutoStylePoolP::exportStyleAttributes( rAttrList, nFamily, rProperties,
rPropExp, rUnitConverter, rNamespaceMap );
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index 51f8cd2c872c..e22934ff1098 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -673,7 +673,6 @@ SchXMLDataPointContext::~SchXMLDataPointContext()
void SchXMLDataPointContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
- ::rtl::OUString aValue;
::rtl::OUString sAutoStyleName;
sal_Int32 nRepeat = 1;
@@ -1050,7 +1049,6 @@ SchXMLStatisticsObjectContext::~SchXMLStatisticsObjectContext()
void SchXMLStatisticsObjectContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
- ::rtl::OUString aValue;
::rtl::OUString sAutoStyleName;
rtl::OUString aPosRange;
rtl::OUString aNegRange;
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index e3bdf9f83c03..05a33bd88934 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -2207,7 +2207,6 @@ OUString SvXMLExport::GetRelativeReference(const OUString& rValue)
{
}
}
- OUString sRet = sValue;
if( xUriRef.is() )//no conversion for empty values or for fragments
{
//conversion for matching schemes only
diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx
index 06149952dde9..988137e48a02 100644
--- a/xmloff/source/draw/shapeexport2.cxx
+++ b/xmloff/source/draw/shapeexport2.cxx
@@ -239,8 +239,6 @@ sal_Bool XMLShapeExport::ImpExportPresentationAttributes( const uno::Reference<
{
sal_Bool bIsEmpty = sal_False;
- OUStringBuffer sStringBuffer;
-
// write presentation class entry
mrExport.AddAttribute(XML_NAMESPACE_PRESENTATION, XML_CLASS, rClass);
diff --git a/xmloff/source/meta/MetaExportComponent.cxx b/xmloff/source/meta/MetaExportComponent.cxx
index 9fb1976178b8..511eb6a1336f 100644
--- a/xmloff/source/meta/MetaExportComponent.cxx
+++ b/xmloff/source/meta/MetaExportComponent.cxx
@@ -163,8 +163,8 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum )
AddAttribute( XML_NAMESPACE_OFFICE, XML_VERSION,
::rtl::OUString::createFromAscii(pVersion) );
- SvXMLElementExport aDocElem( *this, XML_NAMESPACE_OFFICE, XML_DOCUMENT_META,
- sal_True, sal_True );
+ SvXMLElementExport aDocElem( *this, XML_NAMESPACE_OFFICE, XML_DOCUMENT_META,
+ sal_True, sal_True );
// NB: office:meta is now written by _ExportMeta
_ExportMeta();
diff --git a/xmloff/source/style/MarkerStyle.cxx b/xmloff/source/style/MarkerStyle.cxx
index 5c0c0ec0b368..5b129b4a03ab 100644
--- a/xmloff/source/style/MarkerStyle.cxx
+++ b/xmloff/source/style/MarkerStyle.cxx
@@ -183,9 +183,6 @@ sal_Bool XMLMarkerStyleExport::exportXML(
if(rValue >>= aBezier)
{
- OUString aStrValue;
- OUStringBuffer aOut;
-
/////////////////
// Name
sal_Bool bEncoded = sal_False;
diff --git a/xmloff/source/style/xmlaustp.cxx b/xmloff/source/style/xmlaustp.cxx
index 46c37edc60e3..25a1a483acdc 100644
--- a/xmloff/source/style/xmlaustp.cxx
+++ b/xmloff/source/style/xmlaustp.cxx
@@ -195,8 +195,6 @@ void SvXMLAutoStylePoolP::exportStyleContent(
{
if( nFamily == XML_STYLE_FAMILY_PAGE_MASTER )
{
- OUString sWS( GetXMLToken(XML_WS) );
-
sal_Int32 nHeaderStartIndex(-1);
sal_Int32 nHeaderEndIndex(-1);
sal_Int32 nFooterStartIndex(-1);
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 10a054405a70..c1f143204bf5 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -933,8 +933,6 @@ void SvXMLExportPropertyMapper::_exportXML(
const ::std::vector< XMLPropertyState > *pProperties,
sal_uInt32 nIdx ) const
{
- OUString sCDATA( GetXMLToken(XML_CDATA) );
-
if ( ( maPropMapper->GetEntryFlags( rProperty.mnIndex ) &
MID_FLAG_SPECIAL_ITEM_EXPORT ) != 0 )
{
@@ -1079,7 +1077,6 @@ void SvXMLExportPropertyMapper::exportElementItems(
const sal_uInt16 nCount = rIndexArray.size();
sal_Bool bItemsExported = sal_False;
- OUString sWS( GetXMLToken(XML_WS) );
for( sal_uInt16 nIndex = 0; nIndex < nCount; nIndex++ )
{
const sal_uInt16 nElement = rIndexArray[nIndex];
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index d4af1ab982f9..eaea9ad7d068 100644
--- a/xmloff/source/style/xmlnumi.cxx
+++ b/xmloff/source/style/xmlnumi.cxx
@@ -880,7 +880,6 @@ SvxXMLListLevelStyleAttrContext_Impl::SvxXMLListLevelStyleAttrContext_Impl(
}
if( !sFontFamily.isEmpty() )
{
- String sEmpty;
Any aAny;
XMLFontFamilyNamePropHdl aFamilyNameHdl;
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 14d2cca3e3ff..55711939b6b3 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2335,7 +2335,6 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
if (xParameters.is() && xParameters->hasByName("Name"))
{
const Any aValue = xParameters->getByName("Name");
- OUString sValue;
aValue >>= sName;
}
if (sName.isEmpty())
@@ -3672,14 +3671,6 @@ void XMLTextParagraphExport::exportRuby(
}
else
{
- // prepare element names
- OUString aRuby(GetXMLToken(XML_RUBY));
- OUString sTextRuby(GetExport().GetNamespaceMap().
- GetQNameByKey(XML_NAMESPACE_TEXT, aRuby));
- OUString sRubyBase(GetXMLToken(XML_RUBY_BASE));
- OUString sTextRubyBase(GetExport().GetNamespaceMap().
- GetQNameByKey(XML_NAMESPACE_TEXT, sRubyBase));
-
if (bStart)
{
// ruby start
diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx
index dc68e1881178..a7aef2556958 100644
--- a/xmloff/source/transform/EventOASISTContext.cxx
+++ b/xmloff/source/transform/EventOASISTContext.cxx
@@ -273,7 +273,6 @@ void XMLEventOASISTransformerContext::StartElement(
{
case XML_ATACTION_HREF:
{
- OUString aAttrValue( rAttrValue );
OUString aName, aLocation;
bool bNeedsTransform =