summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-04 11:43:58 +0200
committerNoel Grandin <noel@peralex.com>2014-06-04 11:52:34 +0200
commitcc25f70ef1e9fa7637b4bfd332ebdc33844a41c2 (patch)
tree76fe846c5b4ec24faa6ee53d34c49554eac3d4a8 /wizards
parentadc20c3937f3119d39af5a0c8e4a439d8127fe63 (diff)
compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it is more appropriate Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/JavaTools.java6
-rw-r--r--wizards/com/sun/star/wizards/form/CallFormWizard.java2
-rw-r--r--wizards/com/sun/star/wizards/query/CallQueryWizard.java2
-rw-r--r--wizards/com/sun/star/wizards/report/CallReportWizard.java4
-rw-r--r--wizards/com/sun/star/wizards/table/CallTableWizard.java2
-rw-r--r--wizards/com/sun/star/wizards/text/TextStyleHandler.java2
6 files changed, 9 insertions, 9 deletions
diff --git a/wizards/com/sun/star/wizards/common/JavaTools.java b/wizards/com/sun/star/wizards/common/JavaTools.java
index 5436983d9167..11656babb1fb 100644
--- a/wizards/com/sun/star/wizards/common/JavaTools.java
+++ b/wizards/com/sun/star/wizards/common/JavaTools.java
@@ -200,7 +200,7 @@ public class JavaTools
int retvalue = -1;
for (int i = 0; i < FieldLen; i++)
{
- if (SearchList[i].compareTo(SearchString) == 0)
+ if (SearchList[i].equals(SearchString))
{
retvalue = i;
break;
@@ -217,7 +217,7 @@ public class JavaTools
{
for (int i = StartIndex; i < FieldLen; i++)
{
- if (SearchList[i].compareTo(SearchString) == 0)
+ if (SearchList[i].equals(SearchString))
{
retvalue = i;
break;
@@ -238,7 +238,7 @@ public class JavaTools
{
if (SearchList[i][0] != null)
{
- if (SearchList[i][0].compareTo(SearchString) == 0)
+ if (SearchList[i][0].equals(SearchString))
{
retvalue = i;
break;
diff --git a/wizards/com/sun/star/wizards/form/CallFormWizard.java b/wizards/com/sun/star/wizards/form/CallFormWizard.java
index f990142eae61..4445937f1506 100644
--- a/wizards/com/sun/star/wizards/form/CallFormWizard.java
+++ b/wizards/com/sun/star/wizards/form/CallFormWizard.java
@@ -69,7 +69,7 @@ public class CallFormWizard
{
try
{
- if (sEvent.compareTo(PropertyNames.START) == 0)
+ if (sEvent.equals(PropertyNames.START))
{
FormWizard CurFormWizard = new FormWizard( m_serviceFactory, m_wizardContext );
CurFormWizard.start();
diff --git a/wizards/com/sun/star/wizards/query/CallQueryWizard.java b/wizards/com/sun/star/wizards/query/CallQueryWizard.java
index 315e763d7503..204fe281dd66 100644
--- a/wizards/com/sun/star/wizards/query/CallQueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/CallQueryWizard.java
@@ -74,7 +74,7 @@ public class CallQueryWizard
{
try
{
- if (sEvent.compareTo(PropertyNames.START) == 0)
+ if (sEvent.equals(PropertyNames.START))
{
QueryWizard CurQueryWizard = new QueryWizard( m_serviceFactory, m_wizardContext );
Command = CurQueryWizard.start();
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java
index af9623c4f526..9ac3ac3f324d 100644
--- a/wizards/com/sun/star/wizards/report/CallReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java
@@ -82,7 +82,7 @@ public class CallReportWizard
{
try
{
- if (sEvent.compareTo(PropertyNames.START) == 0)
+ if (sEvent.equals(PropertyNames.START))
{
if (!bWizardstartedalready)
{
@@ -91,7 +91,7 @@ public class CallReportWizard
}
bWizardstartedalready = false;
}
- else if (sEvent.compareTo("fill") == 0)
+ else if (sEvent.equals("fill"))
{
Dataimport CurDataimport = new Dataimport(xmultiservicefactory);
if (m_wizardContext != null)
diff --git a/wizards/com/sun/star/wizards/table/CallTableWizard.java b/wizards/com/sun/star/wizards/table/CallTableWizard.java
index c092d0f416ab..0674ff72d301 100644
--- a/wizards/com/sun/star/wizards/table/CallTableWizard.java
+++ b/wizards/com/sun/star/wizards/table/CallTableWizard.java
@@ -76,7 +76,7 @@ public class CallTableWizard
{
try
{
- if ( sEvent.compareTo(PropertyNames.START) == 0 )
+ if ( sEvent.equals(PropertyNames.START) )
{
TableWizard CurTableWizard = new TableWizard( m_serviceFactory, m_wizardContext );
Command = CurTableWizard.startTableWizard();
diff --git a/wizards/com/sun/star/wizards/text/TextStyleHandler.java b/wizards/com/sun/star/wizards/text/TextStyleHandler.java
index b1ebdc5407ea..c9225dff8e6b 100644
--- a/wizards/com/sun/star/wizards/text/TextStyleHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextStyleHandler.java
@@ -55,7 +55,7 @@ public class TextStyleHandler
for (int i = 0; i < PropCount; i++)
{
CurOptionName = StyleOptions[i].Name;
- StyleOptions[i].Value = Boolean.valueOf((CurOptionName.compareTo(OptionString) == 0) || (CurOptionName.compareTo("OverwriteStyles") == 0));
+ StyleOptions[i].Value = Boolean.valueOf(CurOptionName.equals(OptionString) || CurOptionName.equals("OverwriteStyles"));
}
xStyleLoader.loadStylesFromURL(sTemplateUrl, StyleOptions);
}