diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-04 11:43:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-04 11:52:34 +0200 |
commit | cc25f70ef1e9fa7637b4bfd332ebdc33844a41c2 (patch) | |
tree | 76fe846c5b4ec24faa6ee53d34c49554eac3d4a8 /unodevtools/source | |
parent | adc20c3937f3119d39af5a0c8e4a439d8127fe63 (diff) |
compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it
is more appropriate
Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
Diffstat (limited to 'unodevtools/source')
-rw-r--r-- | unodevtools/source/skeletonmaker/javacompskeleton.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unodevtools/source/skeletonmaker/javacompskeleton.cxx b/unodevtools/source/skeletonmaker/javacompskeleton.cxx index 42d1da160110..1777dab117fd 100644 --- a/unodevtools/source/skeletonmaker/javacompskeleton.cxx +++ b/unodevtools/source/skeletonmaker/javacompskeleton.cxx @@ -428,12 +428,12 @@ void generateXDispatchBodies(std::ostream& o, ProgramOptions const & options) ProtocolCmdMap::const_iterator iter = options.protocolCmdMap.begin(); while (iter != options.protocolCmdMap.end()) { - o << " if ( aURL.Protocol.compareTo(\"" << (*iter).first - << "\") == 0 )\n {\n"; + o << " if ( aURL.Protocol.equals(\"" << (*iter).first + << "\") )\n {\n"; for (std::vector< OString >::const_iterator i = (*iter).second.begin(); i != (*iter).second.end(); ++i) { - o << " if ( aURL.Path.compareTo(\"" << (*i) << "\") == 0 )\n" + o << " if ( aURL.Path.equals(\"" << (*i) << "\") )\n" " {\n // add your own code here\n" " return;\n }\n"; } @@ -465,12 +465,12 @@ void generateXDispatchProviderBodies(std::ostream& o, ProgramOptions const & opt ProtocolCmdMap::const_iterator iter = options.protocolCmdMap.begin(); while (iter != options.protocolCmdMap.end()) { - o << " if ( aURL.Protocol.compareTo(\"" << (*iter).first - << "\") == 0 )\n {\n"; + o << " if ( aURL.Protocol.equals(\"" << (*iter).first + << "\") )\n {\n"; for (std::vector< OString >::const_iterator i = (*iter).second.begin(); i != (*iter).second.end(); ++i) { - o << " if ( aURL.Path.compareTo(\"" << (*i) << "\") == 0 )\n" + o << " if ( aURL.Path.equals(\"" << (*i) << "\") )\n" " return this;\n"; } |