diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-18 23:47:02 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-18 23:48:47 -0200 |
commit | 80fb2e397a60550de72b378215c2e305b29257a9 (patch) | |
tree | befc5cc4cd89e129597247dd0e3d80a7fb8cc35f /ucb/source/ucp/webdav/DAVResourceAccess.cxx | |
parent | 3e04e08d371532960917afbcd59307fbd6c1f313 (diff) |
Fix for fdo43460 Part L getLength() to isEmpty()
Part L
Modules
ucb
Diffstat (limited to 'ucb/source/ucp/webdav/DAVResourceAccess.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/DAVResourceAccess.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index ce76e198d1b3..4f9d4c6531a8 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -67,10 +67,10 @@ int DAVAuthListener_Impl::authenticate( { // #102871# - Supply username and password from previous try. // Password container service depends on this! - if ( inoutUserName.getLength() == 0 ) + if ( inoutUserName.isEmpty() ) inoutUserName = m_aPrevUsername; - if ( outPassWord.getLength() == 0 ) + if ( outPassWord.isEmpty() ) outPassWord = m_aPrevPassword; rtl::Reference< ucbhelper::SimpleAuthenticationRequest > xRequest @@ -1067,17 +1067,17 @@ void DAVResourceAccess::initialize() throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); - if ( m_aPath.getLength() == 0 ) + if ( m_aPath.isEmpty() ) { NeonUri aURI( m_aURL ); rtl::OUString aPath( aURI.GetPath() ); /* #134089# - Check URI */ - if ( !aPath.getLength() ) + if ( aPath.isEmpty() ) throw DAVException( DAVException::DAV_INVALID_ARG ); /* #134089# - Check URI */ - if ( !aURI.GetHost().getLength() ) + if ( aURI.GetHost().isEmpty() ) throw DAVException( DAVException::DAV_INVALID_ARG ); if ( !m_xSession.is() || !m_xSession->CanUse( m_aURL, m_aFlags ) ) |