summaryrefslogtreecommitdiff
path: root/xmlhelp/source/treeview
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-24 11:44:35 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-24 19:15:54 -0200
commit2727a29e57cdcd5dddc94a829194f88cfc2808ab (patch)
treef9dde390d118c21ab650ee4830aed66c7d86ad19 /xmlhelp/source/treeview
parent116f3f2e163327e5494c86fb47853ec2282dd1fe (diff)
Fix for fdo43460 Part XLVI getLength() to isEmpty()
Part XLVI Modules xmlhelp
Diffstat (limited to 'xmlhelp/source/treeview')
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx2
-rw-r--r--xmlhelp/source/treeview/tvread.cxx13
2 files changed, 7 insertions, 8 deletions
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 3a6bcbe09c80..6f8ca210c424 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -188,7 +188,7 @@ TVFactory::createInstanceWithArguments(
break;
}
- if( hierview.getLength() )
+ if( !hierview.isEmpty() )
{
Reference< XHierarchicalNameAccess > xhieraccess( m_xHDS,UNO_QUERY );
Any aAny = xhieraccess->getByHierarchicalName( hierview );
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index ab5d956ae2f8..46736516fdf4 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -135,7 +135,7 @@ namespace treeview {
rtl::OUString getTargetURL()
{
- if( ! targetURL.getLength() )
+ if( targetURL.isEmpty() )
{
sal_Int32 len;
for ( const TVDom* p = this;; p = p->parent )
@@ -307,7 +307,7 @@ TVRead::TVRead( const ConfigData& configData,TVDom* tvDom )
if( tvDom->isLeaf() )
{
TargetURL = ( tvDom->getTargetURL() + configData.appendix );
- if( tvDom->anchor.getLength() )
+ if( !tvDom->anchor.isEmpty() )
TargetURL += ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "#" )) +
tvDom->anchor );
}
@@ -504,8 +504,7 @@ TVChildTarget::TVChildTarget( const Reference< XMultiServiceFactory >& xMSF )
{
ConfigData configData = init( xMSF );
- if( ! configData.locale.getLength() ||
- ! configData.system.getLength() )
+ if( configData.locale.isEmpty() || configData.system.isEmpty() )
return;
sal_uInt64 ret,len = 0;
@@ -665,7 +664,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
rtl::OUString system( getKey( xHierAccess,"Help/System" ) );
sal_Bool showBasic( getBooleanKey(xHierAccess,"Help/ShowBasic") );
rtl::OUString instPath( getKey( xHierAccess,"Path/Current/Help" ) );
- if( ! instPath.getLength() )
+ if( instPath.isEmpty() )
// try to determine path from default
instPath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "$(instpath)/help" ));
@@ -742,7 +741,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
TreeFileIterator aTreeIt( locale );
rtl::OUString aTreeFile;
sal_Int32 nFileSize;
- while( (aTreeFile = aTreeIt.nextTreeFile( nFileSize ) ).getLength() > 0 )
+ while( !(aTreeFile = aTreeIt.nextTreeFile( nFileSize ) ).isEmpty() )
{
configData.vFileLen.push_back( nFileSize );
configData.vFileURL.push_back( aTreeFile );
@@ -1183,7 +1182,7 @@ rtl::OUString TreeFileIterator::nextTreeFile( sal_Int32& rnFileSize )
{
rtl::OUString aRetFile;
- while( !aRetFile.getLength() && m_eState != END_REACHED )
+ while( aRetFile.isEmpty() && m_eState != END_REACHED )
{
switch( m_eState )
{