summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/NeonSession.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-18 23:47:02 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-18 23:48:47 -0200
commit80fb2e397a60550de72b378215c2e305b29257a9 (patch)
treebefc5cc4cd89e129597247dd0e3d80a7fb8cc35f /ucb/source/ucp/webdav/NeonSession.cxx
parent3e04e08d371532960917afbcd59307fbd6c1f313 (diff)
Fix for fdo43460 Part L getLength() to isEmpty()
Part L Modules ucb
Diffstat (limited to 'ucb/source/ucp/webdav/NeonSession.cxx')
-rw-r--r--ucb/source/ucp/webdav/NeonSession.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx
index 2ed00dcf047a..3ab4d3924108 100644
--- a/ucb/source/ucp/webdav/NeonSession.cxx
+++ b/ucb/source/ucp/webdav/NeonSession.cxx
@@ -302,7 +302,7 @@ extern "C" int NeonSession_NeonAuth( void * inUserData,
{
NeonUri uri( theSession->getRequestEnvironment().m_aRequestURI );
rtl::OUString aUserInfo( uri.GetUserInfo() );
- if ( aUserInfo.getLength() )
+ if ( !aUserInfo.isEmpty() )
{
sal_Int32 nPos = aUserInfo.indexOf( '@' );
if ( nPos == -1 )
@@ -577,7 +577,7 @@ extern "C" void NeonSession_PreSendRequest( ne_request * req,
RequestDataMap::const_iterator it = pRequestData->find( req );
if ( it != pRequestData->end() )
{
- if ( (*it).second.aContentType.getLength() )
+ if ( !(*it).second.aContentType.isEmpty() )
{
char * pData = headers->data;
if ( strstr( pData, "Content-Type:" ) == NULL )
@@ -590,7 +590,7 @@ extern "C" void NeonSession_PreSendRequest( ne_request * req,
}
}
- if ( (*it).second.aReferer.getLength() )
+ if ( !(*it).second.aReferer.isEmpty() )
{
char * pData = headers->data;
if ( strstr( pData, "Referer:" ) == NULL )
@@ -825,7 +825,7 @@ void NeonSession::Init()
ne_hook_destroy_session( m_pHttpSession, destroy_sess_hook_fn, this );
#endif
- if ( m_aProxyName.getLength() )
+ if ( !m_aProxyName.isEmpty() )
{
ne_session_proxy( m_pHttpSession,
rtl::OUStringToOString(
@@ -878,7 +878,7 @@ sal_Bool NeonSession::CanUse( const rtl::OUString & inUri,
sal_Bool NeonSession::UsesProxy()
{
Init();
- return ( m_aProxyName.getLength() > 0 );
+ return !m_aProxyName.isEmpty() ;
}
// -------------------------------------------------------------------
@@ -2026,7 +2026,7 @@ int NeonSession::POST( ne_session * sess,
RequestDataMap * pData = 0;
- if ( rContentType.getLength() || rReferer.getLength() )
+ if ( !rContentType.isEmpty() || !rReferer.isEmpty() )
{
// Remember contenttype and referer. Data will be added to HTTP request
// header in in 'PreSendRequest' callback.