swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit add27e4e3bc59fdfb572404f3ea0a0a76638638c
Author: rbuj <robert....@gmail.com>
Date:   Fri Sep 5 15:59:19 2014 +0200

    mediawiki: the assigned value is never used
    
    Change-Id: Icb2c4477b96c6bab9004b9c7ead2272b86e78dfb
    Reviewed-on: https://gerrit.libreoffice.org/11297
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>
    Tested-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java 
b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
index fb55817..ebc3d88 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
@@ -121,9 +121,7 @@ public class EditPageParser extends 
HTMLEditorKit.ParserCallback
     public void handleStartTag( HTML.Tag t, MutableAttributeSet a,int pos )
     {
         // insert code to handle starting tags
-        String sName = "";
-        String sId = "";
-        String sClass = "";
+        String sClass;
 
         if ( t == HTML.Tag.HEAD )
         {
@@ -131,7 +129,7 @@ public class EditPageParser extends 
HTMLEditorKit.ParserCallback
         }
         if ( t == HTML.Tag.TEXTAREA )
         {
-            sName = ( String ) a.getAttribute( HTML.Attribute.NAME );
+            String sName = ( String ) a.getAttribute( HTML.Attribute.NAME );
             if ( sName != null )
             {
                 if ( sName.equalsIgnoreCase( "wpTextbox1" ) )
@@ -142,7 +140,7 @@ public class EditPageParser extends 
HTMLEditorKit.ParserCallback
         }
         else if ( t == HTML.Tag.DIV )
         {
-            sId = ( String ) a.getAttribute( HTML.Attribute.ID );
+            String sId = ( String ) a.getAttribute( HTML.Attribute.ID );
             sClass = ( String ) a.getAttribute( HTML.Attribute.CLASS );
             if ( sId != null )
             {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to