[Libreoffice-commits] core.git: qadevOOo/runner wizards/com
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Sat Oct 11 16:49:38 PDT 2014
qadevOOo/runner/convwatch/DBHelper.java | 4 ++--
wizards/com/sun/star/wizards/common/FileAccess.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d860ea91d75568e2e63b0b2c84e50523d562be24
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Sat Oct 11 19:15:44 2014 +0200
It is more efficient to use the integer implementations of String.indexOf()
Change-Id: Idb1e4945088b8443e9b507826e5289ee758a2bd2
Reviewed-on: https://gerrit.libreoffice.org/11919
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/qadevOOo/runner/convwatch/DBHelper.java b/qadevOOo/runner/convwatch/DBHelper.java
index 26be888..aaf6497 100644
--- a/qadevOOo/runner/convwatch/DBHelper.java
+++ b/qadevOOo/runner/convwatch/DBHelper.java
@@ -187,8 +187,8 @@ public class DBHelper
public String Quote(String _sToQuote)
{
- String ts = "'";
- String ds = "\"";
+ char ts = '\'';
+ char ds = '"';
int nQuote = _sToQuote.indexOf(ts);
if (nQuote >= 0)
{
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index a44c786..3424860 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -1063,7 +1063,7 @@ public class FileAccess
{
if (path.startsWith("/"))
{ // unix
- int nextSlash = path.indexOf("/", 1) + 1;
+ int nextSlash = path.indexOf('/', 1) + 1;
firstPart = Math.min(nextSlash, (maxLength - 3) / 2);
}
else
More information about the Libreoffice-commits
mailing list