[Libreoffice-commits] .: sal/inc sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 2 01:27:52 PDT 2012


 sal/inc/sal/log-areas.dox                   |    1 +
 sd/source/filter/html/HtmlOptionsDialog.cxx |    4 +---
 sd/source/filter/html/htmlex.cxx            |    8 +-------
 3 files changed, 3 insertions(+), 10 deletions(-)

New commits:
commit 61128761b27beea9d6f550d8eaa23eefa2750108
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Nov 2 08:24:23 2012 +0000

    loplugin: unused UniStrings
    
    Change-Id: Ia6a10bf30685f25a13c091f04566c62888524c94

diff --git a/sal/inc/sal/log-areas.dox b/sal/inc/sal/log-areas.dox
index 54597a5..777994e 100644
--- a/sal/inc/sal/log-areas.dox
+++ b/sal/inc/sal/log-areas.dox
@@ -59,6 +59,7 @@ certain functionality.
 
 @section Draw
 
+ at li @c sd
 @li @c sd.fwk
 @li @c sd.sls
 @li @c sd.tools
diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx
index bc39ae8..cf2f9e4 100644
--- a/sd/source/filter/html/HtmlOptionsDialog.cxx
+++ b/sd/source/filter/html/HtmlOptionsDialog.cxx
@@ -261,9 +261,7 @@ void SdHtmlOptionsDialog::setSourceDocument( const Reference< XComponent >& xDoc
         throw ( IllegalArgumentException, RuntimeException )
 {
     // try to set the corresponding metric unit
-    String aConfigPath;
-    Reference< XServiceInfo > xServiceInfo
-            ( xDoc, UNO_QUERY );
+    Reference< XServiceInfo > xServiceInfo(xDoc, UNO_QUERY);
     if ( xServiceInfo.is() )
     {
         if ( xServiceInfo->supportsService( "com.sun.star.presentation.PresentationDocument" ) )
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index babb586..f63fb5e 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -877,7 +877,6 @@ void HtmlExport::ExportWebCast()
 
     CreateFileNames();
 
-    String aEmpty;
     if(maCGIPath.Len() == 0)
         maCGIPath.Assign( sal_Unicode('.') );
 
@@ -890,7 +889,6 @@ void HtmlExport::ExportWebCast()
     }
     else
     {
-           String aEmpty2;
         if(maURLPath.Len() == 0)
             maURLPath.Assign( sal_Unicode('.') );
 
@@ -1858,9 +1856,6 @@ bool HtmlExport::CreateHtmlForPresPages()
 // =====================================================================
 bool HtmlExport::CreateContentPage()
 {
-    // Parameter
-    String aEmpty;
-
     if( mbDocColors )
         SetDocColors();
 
@@ -2287,9 +2282,8 @@ bool HtmlExport::CreateFrames()
 
     if(mbNotes)
     {
-        String aEmpty;
         String aSlash( RTL_CONSTASCII_USTRINGPARAM( "//" ) );
-        aFunction.SearchAndReplaceAll( aSlash, aEmpty);
+        aFunction.SearchAndReplaceAll(aSlash, OUString());
     }
 
     // substitute HTML file extension


More information about the Libreoffice-commits mailing list