swext/mediawiki/src/com/sun/star/wiki/Helper.java | 2 +- swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4157780bedd048a27cc33302ab5ebca5a93afa70 Author: rbuj <robert....@gmail.com> Date: Wed Sep 10 00:29:04 2014 +0200 mediawiki: use a character literal Change-Id: I1dadf4f905fcf06aee616cc0cfea3d77a145a3a1 Reviewed-on: https://gerrit.libreoffice.org/11371 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java index 50f1ece..1eb4204 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java +++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java @@ -341,7 +341,7 @@ public class Helper int nURL = sWebPage.indexOf( "URL=", nContent ); if ( nURL > 0 ) { - int nEndURL = sWebPage.indexOf( "\"", nURL ); + int nEndURL = sWebPage.indexOf('"', nURL ); if ( nEndURL > 0 ) sResultURL = sWebPage.substring( nURL + 4, nEndURL ); } diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java index d293cb2..6b87778 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java @@ -146,7 +146,7 @@ public class WikiArticle if ( iPosStart >= 0 && iPosEnd > 0 ) { String sArticle = sWebPage.substring(iPosStart, iPosEnd); - iPosStart = sArticle.indexOf(">") + 1; + iPosStart = sArticle.indexOf('>') + 1; sWikiCode = sArticle.substring( iPosStart, sArticle.length() ); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits