summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-08 15:02:31 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-10 08:09:00 +0000
commit54013188b24a1a02491a2853f731461253065424 (patch)
tree45078e1deb8bdfdde79a431daa81fde7c47621ad /sal
parentfd2749455fe25e24b448a44f9ada6113e5ac0d13 (diff)
cleanup some unnecessary direct usage of the OString/OUString C API.
Change-Id: I6edee95aae1c169ce70063562a0c1b287e0c4735 Reviewed-on: https://gerrit.libreoffice.org/16861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/debugbase.cxx3
-rw-r--r--sal/osl/unx/file_stat.cxx4
-rw-r--r--sal/osl/w32/file_dirvol.cxx4
3 files changed, 3 insertions, 8 deletions
diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx
index ae097ee891b1..0f233f8b637b 100644
--- a/sal/osl/all/debugbase.cxx
+++ b/sal/osl/all/debugbase.cxx
@@ -91,8 +91,7 @@ bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName )
return false;
// check for "all":
rtl::OString const& rFirst = rVec[0];
- if (rtl_str_compare_WithLength( rFirst.getStr(), rFirst.getLength(),
- RTL_CONSTASCII_STRINGPARAM("all") ) == 0)
+ if ( rFirst == "all" )
return true;
OStringVec::const_iterator const iEnd( rVec.end() );
return std::find_if( rVec.begin(), iEnd,
diff --git a/sal/osl/unx/file_stat.cxx b/sal/osl/unx/file_stat.cxx
index 7818282893b9..72d64f145501 100644
--- a/sal/osl/unx/file_stat.cxx
+++ b/sal/osl/unx/file_stat.cxx
@@ -427,9 +427,7 @@ SAL_CALL osl_identicalDirectoryItem( oslDirectoryItem a, oslDirectoryItem b)
if (a == b)
return sal_True;
/* same name => same item, unless renaming / moving madness has occurred */
- if (rtl_ustr_compare_WithLength(
- pA->m_ustrFilePath->buffer, pA->m_ustrFilePath->length,
- pB->m_ustrFilePath->buffer, pB->m_ustrFilePath->length ) == 0)
+ if (pA->m_ustrFilePath == pB->m_ustrFilePath)
return sal_True;
struct stat a_stat, b_stat;
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index bd5bb0272c93..5f8aef4c32fb 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -1151,9 +1151,7 @@ SAL_CALL osl_identicalDirectoryItem( oslDirectoryItem a, oslDirectoryItem b)
if (a == b)
return sal_True;
/* same name => same item, unless renaming / moving madness has occurred */
- if (rtl_ustr_compare_WithLength(
- pA->m_pFullPath->buffer, pA->m_pFullPath->length,
- pB->m_pFullPath->buffer, pB->m_pFullPath->length ) == 0)
+ if (pA->m_pFullPath == pB->m_pFullPath)
return sal_True;
// FIXME: as/when/if this is used in anger on Windows we could