diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 17:22:11 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 20:32:39 +0100 |
commit | a2454a42ad2236f0f6b88be166bc7e6a8f90f036 (patch) | |
tree | 7f6dfc38cfd617f41c63a17640ec7ef8650a2c45 /ucb | |
parent | lm files missing from fingerprint.zip again (diff) | |
download | core-a2454a42ad2236f0f6b88be166bc7e6a8f90f036.tar.gz core-a2454a42ad2236f0f6b88be166bc7e6a8f90f036.zip |
fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/gio/gio_mount.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/DAVResourceAccess.cxx | 10 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontent.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx index 30fe95e37fd3..bd9d2012a258 100644 --- a/ucb/source/ucp/gio/gio_mount.cxx +++ b/ucb/source/ucp/gio/gio_mount.cxx @@ -97,10 +97,10 @@ static void ooo_mount_operation_ask_password (GMountOperation *op, aPrevPassword = rtl::OUString(pThis->m_pPrevPassword, strlen(pThis->m_pPrevPassword), RTL_TEXTENCODING_UTF8); //The damn dialog is stupidly broken, so do like webdav, i.e. "#102871#" - if ( aUserName.getLength() == 0 ) + if ( aUserName.isEmpty() ) aUserName = aPrevUsername; - if ( aPassword.getLength() == 0 ) + if ( aPassword.isEmpty() ) aPassword = aPrevPassword; ucbhelper::SimpleAuthenticationRequest::EntityType eDomain = diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index bbdac2f644fb..8c495610a8d7 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -60,10 +60,10 @@ int DAVAuthListener_Impl::authenticate( // container to reject these. Thus, the credential input dialog will be shown again. // #102871# - Supply username and password from previous try. // Password container service depends on this! - if ( inoutUserName.getLength() == 0 && bUsePreviousCredentials ) + if ( inoutUserName.isEmpty() && bUsePreviousCredentials ) inoutUserName = m_aPrevUsername; - if ( outPassWord.getLength() == 0 && bUsePreviousCredentials ) + if ( outPassWord.isEmpty() && bUsePreviousCredentials ) outPassWord = m_aPrevPassword; rtl::Reference< ucbhelper::SimpleAuthenticationRequest > xRequest @@ -1008,17 +1008,17 @@ void DAVResourceAccess::initialize() throw ( DAVException ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); - if ( m_aPath.getLength() == 0 ) + if ( m_aPath.isEmpty() ) { SerfUri 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 ) ) diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 7ea094bb9791..3594ddd96083 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -2225,7 +2225,7 @@ void Content::insert( // Check, if all required properties are present. - if ( aEscapedTitle.getLength() == 0 ) + if ( aEscapedTitle.isEmpty() ) { OSL_ENSURE( sal_False, "Content::insert - Title missing!" ); |