summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 13:10:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 20:23:09 +0200
commit8c77b5670ec0ee6d550d5adba51b8ae76fe2c162 (patch)
tree9a905004341f2fae7bee3b45bd8826d95f801353 /unodevtools
parent1dea7fb6be5f1ba64f680e3ad885afa1c99030bf (diff)
use OString::operator== in preference to ::equals
Change-Id: Ib291521963a791a9c6175964571e9d9895072acf Reviewed-on: https://gerrit.libreoffice.org/39646 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cpptypemaker.cxx4
-rw-r--r--unodevtools/source/skeletonmaker/javatypemaker.cxx4
-rw-r--r--unodevtools/source/skeletonmaker/skeletoncommon.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/unodevtools/source/skeletonmaker/cpptypemaker.cxx b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
index 936b5841a479..4080b993bf47 100644
--- a/unodevtools/source/skeletonmaker/cpptypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
@@ -353,7 +353,7 @@ void printSetPropertyMixinBody(
OString s(fieldtype.getToken(0, '<', nPos));
OString t = s.copy(s.lastIndexOf('/')+1);
- if (t.equals("Optional")) {
+ if (t == "Optional") {
optional=true;
if (single) {
single=false;
@@ -429,7 +429,7 @@ void printMethods(std::ostream & o,
static OString sd("_");
bool body = !delegate.isEmpty();
- bool defaultbody = delegate.equals(sd);
+ bool defaultbody = delegate == sd;
if (body && propertyhelper.getLength() > 1) {
if (name == "com.sun.star.beans.XPropertySet") {
diff --git a/unodevtools/source/skeletonmaker/javatypemaker.cxx b/unodevtools/source/skeletonmaker/javatypemaker.cxx
index ec60403064c6..2a5c84cb0400 100644
--- a/unodevtools/source/skeletonmaker/javatypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/javatypemaker.cxx
@@ -351,7 +351,7 @@ void printSetPropertyMixinBody(
buffer.append(')');
OString t = buffer.makeStringAndClear();
- if ( t.equals("((Optional)") ) {
+ if ( t == "((Optional)" ) {
optional=true;
if (single) {
single=false;
@@ -441,7 +441,7 @@ void printMethods(std::ostream & o,
static OString sd("_");
bool body = !delegate.isEmpty();
- bool defaultbody = delegate.equals(sd);
+ bool defaultbody = delegate == sd;
generated.add(u2b(name));
rtl::Reference< unoidl::Entity > ent;
diff --git a/unodevtools/source/skeletonmaker/skeletoncommon.cxx b/unodevtools/source/skeletonmaker/skeletoncommon.cxx
index d4c269a394f9..7910d163d543 100644
--- a/unodevtools/source/skeletonmaker/skeletoncommon.cxx
+++ b/unodevtools/source/skeletonmaker/skeletoncommon.cxx
@@ -63,7 +63,7 @@ bool getOutputStream(ProgramOptions const & options,
OString & tmpSourceFileName)
{
bool bStandardout = false;
- if ( options.outputpath.equals("stdout") )
+ if ( options.outputpath == "stdout" )
{
bStandardout = true;
*ppOutputStream = &std::cout;