[Libreoffice-commits] core.git: wizards/com
rbuj
robert.buj at gmail.com
Tue Sep 9 11:35:20 PDT 2014
wizards/com/sun/star/wizards/common/FileAccess.java | 6 +++---
wizards/com/sun/star/wizards/form/StyleApplier.java | 6 +++---
wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit baa6bb9621f604669d09ba7a7f21c16d46430194
Author: rbuj <robert.buj at gmail.com>
Date: Tue Sep 9 16:34:41 2014 +0200
wizards: use a character literal
Change-Id: I22d530e0feb9e3112b4f2e7548d6335235713247
Reviewed-on: https://gerrit.libreoffice.org/11360
Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
Tested-by: Thomas Arnhold <thomas at arnhold.org>
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index 12d4d4d..58af791 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -515,7 +515,7 @@ public class FileAccess
*/
private static String getExtension(String filename)
{
- int p = filename.indexOf(".");
+ int p = filename.indexOf('.');
if (p == -1)
{
return PropertyNames.EMPTY_STRING;
@@ -526,7 +526,7 @@ public class FileAccess
{
filename = filename.substring(p + 1);
}
- while ((p = filename.indexOf(".")) > -1);
+ while ((p = filename.indexOf('.')) > -1);
}
return filename;
}
@@ -588,7 +588,7 @@ public class FileAccess
}
int pos = -1;
int lastPos = 0;
- while ((pos = url.indexOf("/", pos + 1)) > -1)
+ while ((pos = url.indexOf('/', pos + 1)) > -1)
{
lastPos = pos;
}
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index 8236782..2cd30ff 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -210,17 +210,17 @@ public class StyleApplier
if (index > -1)
{
String sPropName = PropertyNames.EMPTY_STRING;
- while (((sPropName.indexOf("}") < 0) && (index < _sDataList.length - 1)))
+ while (((sPropName.indexOf('}') < 0) && (index < _sDataList.length - 1)))
{
String scurline = _sDataList[index++];
if ((scurline.indexOf(_sPropertyDescription)) > 0)
{
- if (scurline.indexOf(":") > 0)
+ if (scurline.indexOf(':') > 0)
{
String[] sPropList = JavaTools.ArrayoutofString(scurline, ":");
String sPropValue = sPropList[1];
sPropValue = sPropValue.trim();
- if (sPropValue.indexOf("#") > -1)
+ if (sPropValue.indexOf('#') > -1)
{
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON);
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
index 93947e2..8c8175b 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
@@ -698,7 +698,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
{
if (_sName.startsWith("field:["))
{
- int nCloseBrace = _sName.lastIndexOf("]");
+ int nCloseBrace = _sName.lastIndexOf(']');
return _sName.substring(7, nCloseBrace).trim();
}
return _sName;
More information about the Libreoffice-commits
mailing list