[Libreoffice-commits] .: xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Nov 3 10:36:26 PDT 2012


 xmloff/source/chart/SchXMLAutoStylePoolP.cxx   |    1 -
 xmloff/source/chart/SchXMLPlotAreaContext.cxx  |    2 --
 xmloff/source/core/xmlexp.cxx                  |    1 -
 xmloff/source/draw/shapeexport2.cxx            |    2 --
 xmloff/source/meta/MetaExportComponent.cxx     |    4 ++--
 xmloff/source/style/MarkerStyle.cxx            |    3 ---
 xmloff/source/style/xmlaustp.cxx               |    2 --
 xmloff/source/style/xmlexppr.cxx               |    3 ---
 xmloff/source/style/xmlnumi.cxx                |    1 -
 xmloff/source/text/txtparae.cxx                |    9 ---------
 xmloff/source/transform/EventOASISTContext.cxx |    1 -
 11 files changed, 2 insertions(+), 27 deletions(-)

New commits:
commit 7fe8d9328c619523897aa0e84b4bb9f5ab11b743
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Sat Nov 3 18:35:52 2012 +0100

    xmloff: drop unused OUStrings
    
    Change-Id: I040e9a5c9e60a27aa82fd624cc01edfecf5cc8de

diff --git a/xmloff/source/chart/SchXMLAutoStylePoolP.cxx b/xmloff/source/chart/SchXMLAutoStylePoolP.cxx
index 5f59c34..5660ec0 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 51f8cd2..e22934f 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 e3bdf9f..05a33bd 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 0614995..988137e 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 9fb1976..511eb6a 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 5c0c0ec..5b129b4 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 46c37ed..25a1a48 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 10a0544..c1f1432 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 d4af1ab..eaea9ad 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 14d2cca..5571193 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 dc68e18..a7aef25 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 =


More information about the Libreoffice-commits mailing list