diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 23:48:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-10 08:17:39 +0000 |
commit | e8ac22f3aa98e16ae7e2b26ad9a99311ba42af4b (patch) | |
tree | a147c64f4fe87ebaf2e66a54e773f9a17823a924 /qadevOOo/runner/util/utils.java | |
parent | 0f114c3d00f73441a405d25bc6d98be3a829cd8e (diff) |
qadevOOo: use a character literal
Change-Id: I6d3e592de64c63e66bb788b112e188ef217e7bf7
Reviewed-on: https://gerrit.libreoffice.org/11367
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner/util/utils.java')
-rw-r--r-- | qadevOOo/runner/util/utils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java index 6ccc181bbbfe..9a3faf4c53cf 100644 --- a/qadevOOo/runner/util/utils.java +++ b/qadevOOo/runner/util/utils.java @@ -331,7 +331,7 @@ public class utils { dir = dir.substring("file:///".length()); - idx = dir.indexOf(":"); + idx = dir.indexOf(':'); // is the last character a '/' or a '\'? boolean lastCharSet = dir.endsWith("/") || dir.endsWith("\\"); @@ -370,7 +370,7 @@ public class utils { } // remove leading '/' and replace others with '\' on windows machines - if (sysDir.indexOf(":") != -1) { + if (sysDir.indexOf(':') != -1) { sysDir = sysDir.substring(1); sysDir = sysDir.replace('/', '\\'); } @@ -395,7 +395,7 @@ public class utils { } // remove leading '/' and replace others with '\' on windows machines - if (sysDir.indexOf(":") != -1) { + if (sysDir.indexOf(':') != -1) { sysDir = sysDir.substring(1); sysDir = sysDir.replace('/', '\\'); } |