diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2017-09-30 21:52:24 +0000 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-01 15:58:22 +0200 |
commit | 50da5d0d1c5bdfbb9a2006e77a02519d0f39740f (patch) | |
tree | e37dfd06bfafbfe69fe8845fecf4cf34900ce598 /package | |
parent | 22e748e68a87e1b470146eacad374c7dfef74f5a (diff) |
simplify some OUString compareTo calls
to either startsWith or == or !=
Change-Id: I595dd9d89d32134827980c4ba10f88584430137d
Reviewed-on: https://gerrit.libreoffice.org/42988
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/xstorage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 3821c7488b70..9eab732a8d4f 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -1092,7 +1092,7 @@ void OStorage_Impl::Commit() uno::Any aPackageElement = m_xPackageFolder->getByName( (*pElementIter)->m_aOriginalName ); xNewPackageFolder->insertByName( (*pElementIter)->m_aName, aPackageElement ); } - else if ( (*pElementIter)->m_aName.compareTo( (*pElementIter)->m_aOriginalName ) ) + else if ( (*pElementIter)->m_aName != (*pElementIter)->m_aOriginalName ) { // this is the case when xNewPackageFolder refers to m_xPackageFolder // in case the name was changed and it is not a changed storage - rename the element |