From 8c77b5670ec0ee6d550d5adba51b8ae76fe2c162 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Jul 2017 13:10:19 +0200 Subject: use OString::operator== in preference to ::equals Change-Id: Ib291521963a791a9c6175964571e9d9895072acf Reviewed-on: https://gerrit.libreoffice.org/39646 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unodevtools/source/skeletonmaker/cpptypemaker.cxx | 4 ++-- unodevtools/source/skeletonmaker/javatypemaker.cxx | 4 ++-- unodevtools/source/skeletonmaker/skeletoncommon.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'unodevtools') 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; -- cgit