summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-11 19:15:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-11 23:49:14 +0000
commitd860ea91d75568e2e63b0b2c84e50523d562be24 (patch)
treec58cd20041f13685a823b34cf009df534b3e92de /qadevOOo
parent6ba7f47de32074895b830e1ef3682fa1d0d1b6be (diff)
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@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/convwatch/DBHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/runner/convwatch/DBHelper.java b/qadevOOo/runner/convwatch/DBHelper.java
index 26be888f02fd..aaf6497bcd75 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)
{