summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-02 08:24:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-02 08:24:23 +0000
commit61128761b27beea9d6f550d8eaa23eefa2750108 (patch)
tree0bae6bf268ba41ee086cc74dbe88aeb9aadae8cd /sd
parent86b1ccc71cd8bc38599576ce6acab9cfab4d9231 (diff)
loplugin: unused UniStrings
Change-Id: Ia6a10bf30685f25a13c091f04566c62888524c94
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/html/HtmlOptionsDialog.cxx4
-rw-r--r--sd/source/filter/html/htmlex.cxx8
2 files changed, 2 insertions, 10 deletions
diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx
index bc39ae88983a..cf2f9e4e48ea 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 babb586e702d..f63fb5e9d89f 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