summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
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