Kaydet (Commit) baa6bb96 authored tarafından rbuj's avatar rbuj Kaydeden (comit) Thomas Arnhold

wizards: use a character literal

Change-Id: I22d530e0feb9e3112b4f2e7548d6335235713247
Reviewed-on: https://gerrit.libreoffice.org/11360Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst b53415f1
...@@ -515,7 +515,7 @@ public class FileAccess ...@@ -515,7 +515,7 @@ public class FileAccess
*/ */
private static String getExtension(String filename) private static String getExtension(String filename)
{ {
int p = filename.indexOf("."); int p = filename.indexOf('.');
if (p == -1) if (p == -1)
{ {
return PropertyNames.EMPTY_STRING; return PropertyNames.EMPTY_STRING;
...@@ -526,7 +526,7 @@ public class FileAccess ...@@ -526,7 +526,7 @@ public class FileAccess
{ {
filename = filename.substring(p + 1); filename = filename.substring(p + 1);
} }
while ((p = filename.indexOf(".")) > -1); while ((p = filename.indexOf('.')) > -1);
} }
return filename; return filename;
} }
...@@ -588,7 +588,7 @@ public class FileAccess ...@@ -588,7 +588,7 @@ public class FileAccess
} }
int pos = -1; int pos = -1;
int lastPos = 0; int lastPos = 0;
while ((pos = url.indexOf("/", pos + 1)) > -1) while ((pos = url.indexOf('/', pos + 1)) > -1)
{ {
lastPos = pos; lastPos = pos;
} }
......
...@@ -210,17 +210,17 @@ public class StyleApplier ...@@ -210,17 +210,17 @@ public class StyleApplier
if (index > -1) if (index > -1)
{ {
String sPropName = PropertyNames.EMPTY_STRING; 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++]; String scurline = _sDataList[index++];
if ((scurline.indexOf(_sPropertyDescription)) > 0) if ((scurline.indexOf(_sPropertyDescription)) > 0)
{ {
if (scurline.indexOf(":") > 0) if (scurline.indexOf(':') > 0)
{ {
String[] sPropList = JavaTools.ArrayoutofString(scurline, ":"); String[] sPropList = JavaTools.ArrayoutofString(scurline, ":");
String sPropValue = sPropList[1]; String sPropValue = sPropList[1];
sPropValue = sPropValue.trim(); 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.SEMI_COLON);
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE); sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);
......
...@@ -698,7 +698,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter ...@@ -698,7 +698,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
{ {
if (_sName.startsWith("field:[")) if (_sName.startsWith("field:["))
{ {
int nCloseBrace = _sName.lastIndexOf("]"); int nCloseBrace = _sName.lastIndexOf(']');
return _sName.substring(7, nCloseBrace).trim(); return _sName.substring(7, nCloseBrace).trim();
} }
return _sName; return _sName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment