[Libreoffice-commits] core.git: sw/source

Julien Nabet serval2412 at yahoo.fr
Sun Mar 27 19:46:24 UTC 2016


 sw/source/filter/html/SwAppletImpl.cxx |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

New commits:
commit cd7ebd853ff8999060745fb10c89a1b0565a0c07
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 27 21:07:55 2016 +0200

    Remove vars used once
    
    Change-Id: Iee5c87e6bd2153062072238e6f833493c298dae6
    Reviewed-on: https://gerrit.libreoffice.org/23555
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sw/source/filter/html/SwAppletImpl.cxx b/sw/source/filter/html/SwAppletImpl.cxx
index 9c562d2..7d6d9c8 100644
--- a/sw/source/filter/html/SwAppletImpl.cxx
+++ b/sw/source/filter/html/SwAppletImpl.cxx
@@ -30,14 +30,6 @@
 
 using namespace com::sun::star;
 
-namespace {
-
-static char const sHTML_O_archive[] = "ARCHIVE";
-static char const sHTML_O_Archives[] = "ARCHIVES";
-static char const sHTML_O_Object[] = "OBJECT";
-
-}
-
 SwHtmlOptType SwApplet_Impl::GetOptionType( const OUString& rName, bool bApplet )
 {
     SwHtmlOptType nType = bApplet ? SwHtmlOptType::PARAM : SwHtmlOptType::TAG;
@@ -50,7 +42,7 @@ SwHtmlOptType SwApplet_Impl::GetOptionType( const OUString& rName, bool bApplet
             rName.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_O_alt ) )
             nType = SwHtmlOptType::IGNORE;
         else if( bApplet &&
-                 (rName == sHTML_O_archive || rName == sHTML_O_Archives ) )
+                 (rName == "ARCHIVE" || rName == "ARCHIVES" ) )
             nType = SwHtmlOptType::TAG;
         break;
     case 'C':
@@ -85,7 +77,7 @@ SwHtmlOptType SwApplet_Impl::GetOptionType( const OUString& rName, bool bApplet
         break;
     case 'O':
     case 'o':
-        if( bApplet && rName == sHTML_O_Object )
+        if( bApplet && rName == "OBJECT" )
             nType = SwHtmlOptType::TAG;
         break;
     case 'S':


More information about the Libreoffice-commits mailing list