From d860ea91d75568e2e63b0b2c84e50523d562be24 Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Sat, 11 Oct 2014 19:15:44 +0200 Subject: 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 Tested-by: Noel Grandin --- qadevOOo/runner/convwatch/DBHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qadevOOo') 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) { -- cgit