summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-13 19:13:55 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-13 19:13:55 -0200
commitad6ce5e938ce9d78bed9ce6dead5fa087de49c63 (patch)
tree668b0b73f6aa515e4303b946136c155f9d38ae4e
parent38423e0ad2a8e2a902aeb37391aef0b543c09d68 (diff)
Fix for fdo43460 Part XXXVII getLength() to isEmpty()
Part XXXVII Modules svtools
-rw-r--r--svtools/source/config/colorcfg.cxx2
-rw-r--r--svtools/source/config/extcolorcfg.cxx8
-rw-r--r--svtools/source/contnr/contentenumeration.cxx4
-rw-r--r--svtools/source/contnr/fileview.cxx14
-rw-r--r--svtools/source/contnr/templwin.cxx28
-rw-r--r--svtools/source/control/ctrlbox.cxx6
-rw-r--r--svtools/source/control/headbar.cxx4
-rw-r--r--svtools/source/control/inettbc.cxx6
-rw-r--r--svtools/source/control/scriptedtext.cxx2
-rw-r--r--svtools/source/control/tabbar.cxx4
-rw-r--r--svtools/source/control/taskstat.cxx2
-rw-r--r--svtools/source/control/toolbarmenuacc.cxx2
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx4
-rw-r--r--svtools/source/dialogs/insdlg.cxx2
-rw-r--r--svtools/source/edit/texteng.cxx2
-rw-r--r--svtools/source/filter/FilterConfigCache.cxx2
-rw-r--r--svtools/source/filter/FilterConfigItem.cxx2
-rw-r--r--svtools/source/filter/filter.cxx2
-rw-r--r--svtools/source/graphic/descriptor.cxx2
-rw-r--r--svtools/source/graphic/graphicunofactory.cxx2
-rw-r--r--svtools/source/graphic/grfmgr.cxx2
-rw-r--r--svtools/source/graphic/provider.cxx4
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx8
-rw-r--r--svtools/source/misc/imagemgr.cxx2
-rw-r--r--svtools/source/misc/transfer.cxx8
-rw-r--r--svtools/source/svhtml/htmlout.cxx2
-rw-r--r--svtools/source/table/gridtablerenderer.cxx4
-rw-r--r--svtools/source/table/tabledatawindow.cxx2
-rw-r--r--svtools/source/toolpanel/paneltabbar.cxx4
-rw-r--r--svtools/source/uno/addrtempuno.cxx2
-rw-r--r--svtools/source/uno/contextmenuhelper.cxx6
-rw-r--r--svtools/source/uno/generictoolboxcontroller.cxx4
-rw-r--r--svtools/source/uno/popupmenucontrollerbase.cxx2
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx4
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx6
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx4
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx14
37 files changed, 89 insertions, 89 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 54f93b04b8bb..7c8d59bf94eb 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -220,7 +220,7 @@ ColorConfig_Impl::~ColorConfig_Impl()
void ColorConfig_Impl::Load(const rtl::OUString& rScheme)
{
rtl::OUString sScheme(rScheme);
- if(!sScheme.getLength())
+ if(sScheme.isEmpty())
{
//detect current scheme name
uno::Sequence < ::rtl::OUString > aCurrent(1);
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index 8e20a8dac6ae..89a3466ea2e7 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -305,7 +305,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
// load color settings
rtl::OUString sScheme(rScheme);
- if(!sScheme.getLength())
+ if(sScheme.isEmpty())
{
//detect current scheme name
uno::Sequence < ::rtl::OUString > aCurrent(1);
@@ -325,7 +325,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
FillComponentColors(aComponentNames,aDisplayNameMap);
}
- if ( !m_sLoadedScheme.getLength() )
+ if ( m_sLoadedScheme.isEmpty() )
m_sLoadedScheme = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("default"));
if ( !sScheme.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("default")) )
@@ -338,7 +338,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
FillComponentColors(aComponentNames,aDisplayNameMap);
}
}
- if ( !bFound && sScheme.getLength() )
+ if ( !bFound && !sScheme.isEmpty() )
{
AddScheme(sScheme);
CommitCurrentSchemeName();
@@ -427,7 +427,7 @@ void ExtendedColorConfig_Impl::Notify( const uno::Sequence<OUString>& /*rProp
void ExtendedColorConfig_Impl::Commit()
{
- if ( !m_sLoadedScheme.getLength() )
+ if ( m_sLoadedScheme.isEmpty() )
return;
const ::rtl::OUString sColorEntries(RTL_CONSTASCII_USTRINGPARAM("Entries"));
const ::rtl::OUString sColor(RTL_CONSTASCII_USTRINGPARAM("/Color"));
diff --git a/svtools/source/contnr/contentenumeration.cxx b/svtools/source/contnr/contentenumeration.cxx
index 30694e700efb..8f20827a898a 100644
--- a/svtools/source/contnr/contentenumeration.cxx
+++ b/svtools/source/contnr/contentenumeration.cxx
@@ -265,7 +265,7 @@ namespace svt
OUString aContentURL = xContentAccess->queryContentIdentifierString();
OUString aTargetURL = xRow->getString( ROW_TARGET_URL );
- sal_Bool bHasTargetURL = !xRow->wasNull() && aTargetURL.getLength() > 0;
+ sal_Bool bHasTargetURL = !xRow->wasNull() && !aTargetURL.isEmpty();
OUString sRealURL = bHasTargetURL ? aTargetURL : aContentURL;
@@ -432,7 +432,7 @@ namespace svt
Any aAny = xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" )) );
OUString sTitle;
- if ( ( aAny >>= sTitle ) && sTitle.getLength() > 0 )
+ if ( ( aAny >>= sTitle ) && !sTitle.isEmpty() )
{
_rRet = sTitle;
bRet = sal_True;
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 9f1c92f2de40..b2edf1ab33ca 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -151,7 +151,7 @@ void FilterMatch::createWildCardFilterList(const String& _rFilterList,::std::vec
do
{
sToken = _rFilterList.GetToken( 0, ';', nIndex );
- if ( sToken.getLength() )
+ if ( !sToken.isEmpty() )
{
_rFilters.push_back( WildCard( sToken.toAsciiUpperCase() ) );
}
@@ -1048,7 +1048,7 @@ sal_Bool ViewTabListBox_Impl::EditedEntry( SvLBoxEntry* pEntry,
if ( pData )
aURL = OUString( pData->maURL );
- if ( ! aURL.getLength() )
+ if ( aURL.isEmpty() )
return bRet;
try
@@ -1965,7 +1965,7 @@ void SvtFileView_Impl::FilterFolderContent_Impl( const OUString &rFilter )
}
if ( !bHideTransFile &&
- ( !rFilter.getLength() || ( rFilter.compareToAscii( ALL_FILES_FILTER ) == COMPARE_EQUAL ) ) )
+ ( rFilter.isEmpty() || ( rFilter.compareToAscii( ALL_FILES_FILTER ) == COMPARE_EQUAL ) ) )
// when replacing names, there is always something to filter (no view of ".nametranslation.table")
return;
@@ -2290,7 +2290,7 @@ void SvtFileView_Impl::CreateVector_Impl( const Sequence < OUString > &rList )
OUString aSize = aValue.getToken( 0, '\t', nIndex );
aDisplayText += aSize;
- if ( aSize.getLength() )
+ if ( !aSize.isEmpty() )
pEntry->maSize = aSize.toInt64();
}
aDisplayText += aTab;
@@ -2301,7 +2301,7 @@ void SvtFileView_Impl::CreateVector_Impl( const Sequence < OUString > &rList )
OUString aDate = aValue.getToken( 0, '\t', nIndex );
aDisplayText += aDate;
- if ( aDate.getLength() )
+ if ( !aDate.isEmpty() )
{
DBG_ERRORFILE( "Don't know, how to convert date" );
;// convert date string to date
@@ -2316,7 +2316,7 @@ void SvtFileView_Impl::CreateVector_Impl( const Sequence < OUString > &rList )
if ( nIndex >= 0 )
{
OUString aBool = aValue.getToken( 0, '\t', nIndex );
- if ( aBool.getLength() )
+ if ( !aBool.isEmpty() )
pEntry->mbIsFolder = aBool.toBoolean();
}
// get the image url
@@ -2331,7 +2331,7 @@ void SvtFileView_Impl::CreateVector_Impl( const Sequence < OUString > &rList )
// detect the image
if( aValue != rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(aSeparatorStr) ) )
{
- INetURLObject aObj( pEntry->maImageURL.getLength() ? pEntry->maImageURL : pEntry->maTargetURL );
+ INetURLObject aObj( !pEntry->maImageURL.isEmpty() ? pEntry->maImageURL : pEntry->maTargetURL );
pEntry->maImage = SvFileInformationManager::GetImage( aObj, sal_False );
}
maContent.push_back( pEntry );
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 2209b6ab9780..5cc09c95000e 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -185,12 +185,12 @@ void ODocumentInfoPreview::fill(
m_pEditWin->SetAutoScroll( sal_False );
aStr = i_xDocProps->getTitle();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_TITLE ), aStr );
}
aStr = i_xDocProps->getAuthor();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_FROM ), aStr );
}
@@ -199,7 +199,7 @@ void ODocumentInfoPreview::fill(
i_xDocProps->getCreationDate());
aStr = i_xDocProps->getModifiedBy();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString(DI_MODIFIEDBY), aStr );
}
@@ -208,7 +208,7 @@ void ODocumentInfoPreview::fill(
i_xDocProps->getModificationDate());
aStr = i_xDocProps->getPrintedBy();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_PRINTBY ), aStr );
}
@@ -217,18 +217,18 @@ void ODocumentInfoPreview::fill(
i_xDocProps->getPrintDate());
aStr = i_xDocProps->getSubject();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_THEME ), aStr );
}
aStr =
::comphelper::string::convertCommaSeparated(i_xDocProps->getKeywords());
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_KEYWORDS ), aStr );
}
aStr = i_xDocProps->getDescription();
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_DESCRIPTION ),
aStr );
}
@@ -252,7 +252,7 @@ void ODocumentInfoPreview::fill(
aStr = SvFileInformationManager::GetDescription(
INetURLObject(i_rURL) );
}
- if (aStr.getLength()) {
+ if (!aStr.isEmpty()) {
m_pEditWin->InsertEntry( m_pInfoTable->GetString( DI_MIMETYPE ),
aStr );
}
@@ -274,7 +274,7 @@ void ODocumentInfoPreview::fill(
UNO_QUERY );
uno::Any aNew;
aNew = xConverter->convertToSimpleType( aAny, TypeClass_STRING );
- if ((aNew >>= aStr) && aStr.getLength()) {
+ if ((aNew >>= aStr) && !aStr.isEmpty()) {
m_pEditWin->InsertEntry( name, aStr);
}
} catch (uno::Exception &) {
@@ -667,7 +667,7 @@ Sequence< ::rtl::OUString > SvtFileViewWindow_Impl::GetNewDocContents() const
// folder == false
aRow += '0';
// image url?
- if ( aImageURL.getLength() > 0 )
+ if ( !aImageURL.isEmpty() )
{
aRow += '\t';
aRow += String( aImageURL );
@@ -1567,7 +1567,7 @@ void SvtTemplateWindow::ReadViewSettings()
pIconWin->SetCursorPos( nSelectedGroup );
// open the last folder or the selected group
- if ( sLastFolder.getLength() > 0 )
+ if ( !sLastFolder.isEmpty() )
pFileWin->OpenFolder( sLastFolder );
else
IconClickHdl_Impl( NULL );
@@ -1731,10 +1731,10 @@ sal_Bool SvtDocumentTemplateDialog::CanEnableEditBtn() const
sal_Bool bEnable = sal_False;
::rtl::OUString aFolderURL = pImpl->pWin->GetFolderURL();
- if ( pImpl->pWin->IsFileSelected() && aFolderURL.getLength() )
+ if ( pImpl->pWin->IsFileSelected() && !aFolderURL.isEmpty() )
{
::rtl::OUString aFileTargetURL = pImpl->pWin->GetSelectedFile();
- bEnable = aFileTargetURL.getLength() > 0;
+ bEnable = !aFileTargetURL.isEmpty();
}
return bEnable;
@@ -1886,7 +1886,7 @@ IMPL_LINK ( SvtDocumentTemplateDialog, UpdateHdl_Impl, Timer*, _pEventSource )
IMPL_LINK ( SvtDocumentTemplateDialog, OpenLinkHdl_Impl, svt::FixedHyperlink*, EMPTYARG )
{
::rtl::OUString sURL( aMoreTemplatesLink.GetURL() );
- if ( sURL.getLength() > 0 )
+ if ( !sURL.isEmpty() )
{
localizeWebserviceURI(sURL);
try
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index a4bfa4d9a8ff..d4959ecbb0ca 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1057,7 +1057,7 @@ void FontNameBox::SaveMRUEntries( const String& aFontMRUEntriesFile, xub_Unicode
rtl::OString aEntries(rtl::OUStringToOString(GetMRUEntries(cSep),
RTL_TEXTENCODING_UTF8));
- if (!aEntries.getLength() || !aFontMRUEntriesFile.Len())
+ if (aEntries.isEmpty() || !aFontMRUEntriesFile.Len())
return;
SvFileStream aStream;
@@ -1427,7 +1427,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt )
if (bSymbolFont || (!bUsingCorrectFont && sSampleText.isEmpty()))
sSampleText = makeShortRepresentativeSymbolTextForSelectedFont(*rUDEvt.GetDevice());
- if (sSampleText.getLength())
+ if (!sSampleText.isEmpty())
{
const Size &rItemSize = rUDEvt.GetDevice()->GetOutputSize();
//leave a little border at the edge
@@ -1445,7 +1445,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt )
}
//center the text on the line
- if (sSampleText.getLength() && nWidth)
+ if (!sSampleText.isEmpty() && nWidth)
{
nTextHeight = aTextRect.GetHeight();
nDesiredGap = (nH-nTextHeight)/2;
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx
index 22fb7a3a520c..30343f68280e 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -1117,7 +1117,7 @@ void HeaderBar::RequestHelp( const HelpEvent& rHEvt )
else if ( rHEvt.GetMode() & HELPMODE_EXTENDED )
{
rtl::OUString aHelpId( rtl::OStringToOUString( GetHelpId( nItemId ), RTL_TEXTENCODING_UTF8 ) );
- if ( aHelpId.getLength() )
+ if ( !aHelpId.isEmpty() )
{
// Wenn eine Hilfe existiert, dann ausloesen
Help* pHelp = Application::GetHelp();
@@ -1441,7 +1441,7 @@ XubString HeaderBar::GetHelpText( sal_uInt16 nItemId ) const
if ( nPos != HEADERBAR_ITEM_NOTFOUND )
{
ImplHeadItem* pItem = (*mpItemList)[ nPos ];
- if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() )
+ if ( !pItem->maHelpText.Len() && !pItem->maHelpId.isEmpty() )
{
Help* pHelp = Application::GetHelp();
if ( pHelp )
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index e33809bfe602..94a65f2eeb9d 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -252,7 +252,7 @@ IMPL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void*, )
continue;
}
}
- if (( sURL.getLength() > 0 ) && ( sURL[sURL.getLength()-1] != '/' ))
+ if ( !sURL.isEmpty() && ( sURL[sURL.getLength()-1] != '/' ))
{
String sUpperURL( sURL );
sUpperURL.ToUpperAscii();
@@ -884,7 +884,7 @@ void SvtURLBox::UpdatePicklistForSmartProtocol_Impl()
seqPropertySet[nProperty].Value >>= sURL;
aCurObj.SetURL( sURL );
- if ( sURL.getLength() && ( eSmartProtocol != INET_PROT_NOT_VALID ) )
+ if ( !sURL.isEmpty() && ( eSmartProtocol != INET_PROT_NOT_VALID ) )
{
if( aCurObj.GetProtocol() != eSmartProtocol )
break;
@@ -1143,7 +1143,7 @@ String SvtURLBox::GetURL()
String aName = ParseSmart( aText, aBaseURL, SvtPathOptions().GetWorkPath() );
aObj.SetURL( aName );
::rtl::OUString aURL( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
- if ( !aURL.getLength() )
+ if ( aURL.isEmpty() )
// aText itself is invalid, and even together with aBaseURL, it could not
// made valid -> no chance
return aText;
diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx
index 239cc764b45d..1628d0201d01 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -291,7 +291,7 @@ const Size& SvtScriptedTextHelper_Impl::GetTextSize() const
void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
{
- if( !maText.getLength() || maPosVec.empty() )
+ if( maText.isEmpty() || maPosVec.empty() )
return;
DBG_ASSERT( maPosVec.size() - 1 == maScriptVec.size(), "SvtScriptedTextHelper_Impl::DrawText - invalid vectors" );
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 128470938d09..54476afe0838 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1548,7 +1548,7 @@ void TabBar::RequestHelp( const HelpEvent& rHEvt )
else if ( rHEvt.GetMode() & HELPMODE_EXTENDED )
{
rtl::OUString aHelpId( rtl::OStringToOUString( GetHelpId( nItemId ), RTL_TEXTENCODING_UTF8 ) );
- if ( aHelpId.getLength() )
+ if ( !aHelpId.isEmpty() )
{
// Wenn eine Hilfe existiert, dann ausloesen
Help* pHelp = Application::GetHelp();
@@ -2487,7 +2487,7 @@ XubString TabBar::GetHelpText( sal_uInt16 nPageId ) const
if ( nPos != PAGE_NOT_FOUND )
{
ImplTabBarItem* pItem = (*mpItemList)[ nPos ];
- if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() )
+ if ( !pItem->maHelpText.Len() && !pItem->maHelpId.isEmpty() )
{
Help* pHelp = Application::GetHelp();
if ( pHelp )
diff --git a/svtools/source/control/taskstat.cxx b/svtools/source/control/taskstat.cxx
index d1959a52caca..80acfcac22b9 100644
--- a/svtools/source/control/taskstat.cxx
+++ b/svtools/source/control/taskstat.cxx
@@ -405,7 +405,7 @@ void TaskStatusBar::RequestHelp( const HelpEvent& rHEvt )
if ( pItem )
{
rtl::OUString aHelpId( rtl::OStringToOUString( pItem->maItem.GetHelpId(), RTL_TEXTENCODING_UTF8 ) );
- if ( aHelpId.getLength() )
+ if ( !aHelpId.isEmpty() )
{
// Wenn eine Hilfe existiert, dann ausloesen
Help* pHelp = Application::GetHelp();
diff --git a/svtools/source/control/toolbarmenuacc.cxx b/svtools/source/control/toolbarmenuacc.cxx
index 0d04a343f28d..e297f11e8b6f 100644
--- a/svtools/source/control/toolbarmenuacc.cxx
+++ b/svtools/source/control/toolbarmenuacc.cxx
@@ -249,7 +249,7 @@ OUString SAL_CALL ToolbarMenuAcc::getAccessibleName() throw (RuntimeException)
if( mpParent )
aRet = mpParent->mrMenu.GetAccessibleName();
- if( !aRet.getLength() )
+ if( aRet.isEmpty() )
{
Window* pLabel = mpParent->mrMenu.GetAccessibleRelationLabeledBy();
if( pLabel && pLabel != &mpParent->mrMenu )
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 7f8198435a30..27ed3ba79ed0 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -233,7 +233,7 @@ public:
{
ConstMapString2StringIterator aPos = m_aAliases.find( _rLogicalName );
return ( m_aAliases.end() != aPos )
- && ( aPos->second.getLength() );
+ && ( !aPos->second.isEmpty() );
}
// -------------------------------------------------------------------
@@ -413,7 +413,7 @@ void AssignmentPersistentData::Commit()
// -------------------------------------------------------------------
void AssignmentPersistentData::setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment)
{
- if (!_rAssignment.getLength())
+ if (_rAssignment.isEmpty())
{
if (hasFieldAssignment(_rLogicalName))
// the assignment exists but it should be reset
diff --git a/svtools/source/dialogs/insdlg.cxx b/svtools/source/dialogs/insdlg.cxx
index 351236ed0fe4..e59efb7aad96 100644
--- a/svtools/source/dialogs/insdlg.cxx
+++ b/svtools/source/dialogs/insdlg.cxx
@@ -165,7 +165,7 @@ void SvObjectServerList::FillInsertObjects()
xEntry->getByName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ObjectUIName" )) ) >>= aUIName;
xEntry->getByName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ClassID" )) ) >>= aClassID;
- if ( aUIName.getLength() )
+ if ( !aUIName.isEmpty() )
{
// replace %PRODUCTNAME
sal_Int32 nIndex = aUIName.indexOf( aStringProductName );
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx
index 06062b8fb724..a9f886592142 100644
--- a/svtools/source/edit/texteng.cxx
+++ b/svtools/source/edit/texteng.cxx
@@ -2990,7 +2990,7 @@ void TextEngine::SetLocale( const ::com::sun::star::lang::Locale& rLocale )
::com::sun::star::lang::Locale TextEngine::GetLocale()
{
- if ( !maLocale.Language.getLength() )
+ if ( maLocale.Language.isEmpty() )
{
maLocale = Application::GetSettings().GetUILocale();
}
diff --git a/svtools/source/filter/FilterConfigCache.cxx b/svtools/source/filter/FilterConfigCache.cxx
index da71bb531dcc..f130b25dcb46 100644
--- a/svtools/source/filter/FilterConfigCache.cxx
+++ b/svtools/source/filter/FilterConfigCache.cxx
@@ -211,7 +211,7 @@ void FilterConfigCache::ImplInit()
xFilterSet->getPropertyValue(SREALFILTERNAME) >>= aEntry.sFilterType;
Sequence< OUString > lFlags;
xFilterSet->getPropertyValue(SFLAGS) >>= lFlags;
- if (lFlags.getLength()!=1 || !lFlags[0].getLength())
+ if (lFlags.getLength()!=1 || lFlags[0].isEmpty())
continue;
if (lFlags[0].equalsIgnoreAsciiCaseAscii("import"))
aEntry.nFlags = 1;
diff --git a/svtools/source/filter/FilterConfigItem.cxx b/svtools/source/filter/FilterConfigItem.cxx
index 4d79d96c1626..5368c94af1d5 100644
--- a/svtools/source/filter/FilterConfigItem.cxx
+++ b/svtools/source/filter/FilterConfigItem.cxx
@@ -278,7 +278,7 @@ PropertyValue* FilterConfigItem::GetPropertyValue( Sequence< PropertyValue >& rP
sal_Bool FilterConfigItem::WritePropertyValue( Sequence< PropertyValue >& rPropSeq, const PropertyValue& rPropValue )
{
sal_Bool bRet = sal_False;
- if ( rPropValue.Name.getLength() )
+ if ( !rPropValue.Name.isEmpty() )
{
sal_Int32 i, nCount;
for ( i = 0, nCount = rPropSeq.getLength(); i < nCount; i++ )
diff --git a/svtools/source/filter/filter.cxx b/svtools/source/filter/filter.cxx
index 89dd2dba4bc0..fd9ae223f7f3 100644
--- a/svtools/source/filter/filter.cxx
+++ b/svtools/source/filter/filter.cxx
@@ -2207,7 +2207,7 @@ IMPL_LINK( GraphicFilter, FilterCallback, ConvertData*, pData )
nFormat = GetImportFormatNumberForShortName( rtl::OStringToOUString( aShortName, RTL_TEXTENCODING_UTF8) );
nRet = ImportGraphic( pData->maGraphic, String(), pData->mrStm, nFormat ) == 0;
}
- else if( aShortName.getLength() )
+ else if( !aShortName.isEmpty() )
{
// Export
nFormat = GetExportFormatNumberForShortName( rtl::OStringToOUString(aShortName, RTL_TEXTENCODING_UTF8) );
diff --git a/svtools/source/graphic/descriptor.cxx b/svtools/source/graphic/descriptor.cxx
index b1d1050721ff..a2441c9a0336 100644
--- a/svtools/source/graphic/descriptor.cxx
+++ b/svtools/source/graphic/descriptor.cxx
@@ -401,7 +401,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
aMimeType = ::rtl::OUString::createFromAscii( pMimeType );
}
- if( !aMimeType.getLength() && ( mpGraphic->GetType() != GRAPHIC_NONE ) )
+ if( aMimeType.isEmpty() && ( mpGraphic->GetType() != GRAPHIC_NONE ) )
aMimeType = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_VCLGRAPHIC ));
}
else
diff --git a/svtools/source/graphic/graphicunofactory.cxx b/svtools/source/graphic/graphicunofactory.cxx
index 9a8ed3ac32cb..9de8155ef261 100644
--- a/svtools/source/graphic/graphicunofactory.cxx
+++ b/svtools/source/graphic/graphicunofactory.cxx
@@ -59,7 +59,7 @@ GObjectImpl::GObjectImpl( uno::Sequence< uno::Any > const & args, uno::Reference
if ( args.getLength() == 1 )
{
rtl::OUString sId;
- if ( !( args[ 0 ] >>= sId ) || sId.getLength() == 0 )
+ if ( !( args[ 0 ] >>= sId ) || sId.isEmpty() )
throw lang::IllegalArgumentException();
rtl::OString bsId(rtl::OUStringToOString(sId, RTL_TEXTENCODING_UTF8));
mpGObject.reset( new GraphicObject( bsId ) );
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 3b4bfc44ff37..2c4997532451 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -1195,7 +1195,7 @@ GraphicObject::InspectForGraphicObjectImageURL( const Reference< XInterface >& x
{
rtl::OUString sURL;
xProps->getPropertyValue( sImageURL ) >>= sURL;
- if ( sURL.getLength() && sURL.compareToAscii( UNO_NAME_GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) == 0 )
+ if ( !sURL.isEmpty() && sURL.compareToAscii( UNO_NAME_GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) == 0 )
rvEmbedImgUrls.push_back( sURL );
}
}
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index 047f4dff2352..d5bcf46d990b 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -298,7 +298,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const :
const ::rtl::OUString aResourceType( rResourceURL.getToken( 0, '/', nIndex ) );
const ResId aResId( rResourceURL.getToken( 0, '/', nIndex ).toInt32(), *pResMgr );
- if( aResourceType.getLength() )
+ if( !aResourceType.isEmpty() )
{
BitmapEx aBmpEx;
@@ -395,7 +395,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
pDescriptor->init( xIStm, aURL );
xRet = pDescriptor;
}
- else if( aURL.getLength() )
+ else if( !aURL.isEmpty() )
{
uno::Reference< ::graphic::XGraphic > xGraphic( implLoadMemory( aURL ) );
if( !xGraphic.is() )
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx
index bace967e8338..283d34a2a01b 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -197,7 +197,7 @@ sal_Bool AcceleratorExecute::execute(const css::awt::KeyEvent& aAWTKey)
::rtl::OUString sCommand = impl_ts_findCommand(aAWTKey);
// No Command found? Do nothing! User isnt interested on any error handling .-)
- if (!sCommand.getLength())
+ if (sCommand.isEmpty())
return sal_False;
// SAFE -> ----------------------------------
@@ -280,7 +280,7 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
if (xDocCfg.is())
sCommand = xDocCfg->getCommandByKeyEvent(aKey);
- if (sCommand.getLength())
+ if (!sCommand.isEmpty())
return sCommand;
}
catch(const css::container::NoSuchElementException&)
@@ -290,7 +290,7 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
if (xModuleCfg.is())
sCommand = xModuleCfg->getCommandByKeyEvent(aKey);
- if (sCommand.getLength())
+ if (!sCommand.isEmpty())
return sCommand;
}
catch(const css::container::NoSuchElementException&)
@@ -300,7 +300,7 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
if (xGlobalCfg.is())
sCommand = xGlobalCfg->getCommandByKeyEvent(aKey);
- if (sCommand.getLength())
+ if (!sCommand.isEmpty())
return sCommand;
}
catch(const css::container::NoSuchElementException&)
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index c708a1d4f0f9..d35fceed14e9 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -241,7 +241,7 @@ static String GetImageExtensionByFactory_Impl( const String& rURL )
::rtl::OUString aInternalType = xTypeDetector->queryTypeByURL( rURL );
::com::sun::star::uno::Reference < ::com::sun::star::container::XNameAccess > xAccess( xTypeDetector, ::com::sun::star::uno::UNO_QUERY );
::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue > aTypeProps;
- if ( aInternalType.getLength() > 0 && xAccess->hasByName( aInternalType ) )
+ if ( !aInternalType.isEmpty() && xAccess->hasByName( aInternalType ) )
{
xAccess->getByName( aInternalType ) >>= aTypeProps;
sal_Int32 nProps = aTypeProps.getLength();
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 6faa7e55dfe4..5fa1e5b0d9fe 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -151,7 +151,7 @@ static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescripto
const ::rtl::OUString aClassName( rObjDesc.maClassName.GetHexName() );
::rtl::OUString aParams;
- if( aClassName.getLength() )
+ if( !aClassName.isEmpty() )
{
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";classname=\"" ));
aParams += aClassName;
@@ -774,7 +774,7 @@ sal_Bool TransferableHelper::SetString( const ::rtl::OUString& rString, const Da
{
DataFlavor aFileFlavor;
- if( rString.getLength() &&
+ if( !rString.isEmpty() &&
SotExchange::GetFormatDataFlavor( FORMAT_FILE, aFileFlavor ) &&
TransferableDataHelper::IsEqual( aFileFlavor, rFlavor ) )
{
@@ -1387,7 +1387,7 @@ void TransferableDataHelper::FillDataFlavorExVector( const Sequence< DataFlavor
try
{
- if( xMimeFact.is() && rFlavor.MimeType.getLength() )
+ if( xMimeFact.is() && !rFlavor.MimeType.isEmpty() )
xMimeType = xMimeFact->createMimeContentType( rFlavor.MimeType );
}
catch( const ::com::sun::star::uno::Exception& )
@@ -2107,7 +2107,7 @@ sal_Bool TransferableDataHelper::GetFileList(
rtl::OString aDiskString;
while( xStm->ReadLine( aDiskString ) )
- if( aDiskString.getLength() && aDiskString[0] != '#' )
+ if( !aDiskString.isEmpty() && aDiskString[0] != '#' )
rFileList.AppendFile( rtl::OStringToOUString(aDiskString, RTL_TEXTENCODING_UTF8) );
bRet = sal_True;
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx
index 5a25a21397cf..3ba059030387 100644
--- a/svtools/source/svhtml/htmlout.cxx
+++ b/svtools/source/svhtml/htmlout.cxx
@@ -559,7 +559,7 @@ SvStream& HTMLOutFuncs::FlushToAscii( SvStream& rStream,
{
rtl::OString sOut = lcl_FlushToAscii( rContext );
- if (sOut.getLength())
+ if (!sOut.isEmpty())
rStream << sOut.getStr();
return rStream;
diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx
index 5d6eff9e5368..5a20053b694c 100644
--- a/svtools/source/table/gridtablerenderer.cxx
+++ b/svtools/source/table/gridtablerenderer.cxx
@@ -395,7 +395,7 @@ namespace svt { namespace table
Any const rowHeading( m_pImpl->rModel.getRowHeading( m_pImpl->nCurrentRow ) );
::rtl::OUString const rowTitle( CellValueConversion::convertToString( rowHeading ) );
- if ( rowTitle.getLength() )
+ if ( !rowTitle.isEmpty() )
{
::Color const textColor = lcl_getEffectiveColor( m_pImpl->rModel.getHeaderTextColor(), _rStyle, &StyleSettings::GetFieldTextColor );
_rDevice.SetTextColor( textColor );
@@ -586,7 +586,7 @@ namespace svt { namespace table
}
::rtl::OUString const sText( CellValueConversion::convertToString( i_cellContent ) );
- if ( sText.getLength() == 0 )
+ if ( sText.isEmpty() )
return true;
Rectangle const aTargetArea( lcl_getTextRenderingArea( lcl_getContentArea( *m_pImpl, i_targetArea ) ) );
diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx
index 5f5ad0a6ab1f..1dedd3657333 100644
--- a/svtools/source/table/tabledatawindow.cxx
+++ b/svtools/source/table/tabledatawindow.cxx
@@ -141,7 +141,7 @@ namespace svt { namespace table
}
}
- if ( sHelpText.getLength() )
+ if ( !sHelpText.isEmpty() )
{
Rectangle const aControlScreenRect(
OutputToScreenPixel( Point( 0, 0 ) ),
diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx
index b7a245e37a0e..2723534efc1c 100644
--- a/svtools/source/toolpanel/paneltabbar.cxx
+++ b/svtools/source/toolpanel/paneltabbar.cxx
@@ -588,7 +588,7 @@ namespace svt
const bool bUseImage = !!aImage && ( i_eItemContent != TABITEM_TEXT_ONLY );
const ::rtl::OUString sItemText( i_pPanel->GetDisplayName() );
- const bool bUseText = ( sItemText.getLength() != 0 ) && ( i_eItemContent != TABITEM_IMAGE_ONLY );
+ const bool bUseText = ( !sItemText.isEmpty() ) && ( i_eItemContent != TABITEM_IMAGE_ONLY );
Size aItemContentSize;
if ( bUseImage )
@@ -659,7 +659,7 @@ namespace svt
}
const ::rtl::OUString sItemText( i_pPanel->GetDisplayName() );
- const bool bUseText = ( sItemText.getLength() != 0 ) && ( i_eItemContent != TABITEM_IMAGE_ONLY );
+ const bool bUseText = ( !sItemText.isEmpty() ) && ( i_eItemContent != TABITEM_IMAGE_ONLY );
if ( bUseText )
{
diff --git a/svtools/source/uno/addrtempuno.cxx b/svtools/source/uno/addrtempuno.cxx
index 3f3b69acaee6..3cb151fb69f6 100644
--- a/svtools/source/uno/addrtempuno.cxx
+++ b/svtools/source/uno/addrtempuno.cxx
@@ -228,7 +228,7 @@ namespace svt
//------------------------------------------------------------------------------
Dialog* OAddressBookSourceDialogUno::createDialog(Window* _pParent)
{
- if ( m_xDataSource.is() && m_sTable.getLength() )
+ if ( m_xDataSource.is() && !m_sTable.isEmpty() )
return new AddressBookSourceDialog(_pParent, m_aContext.getLegacyServiceFactory(), m_xDataSource, m_sDataSourceName, m_sTable, m_aAliases );
else
return new AddressBookSourceDialog( _pParent, m_aContext.getLegacyServiceFactory() );
diff --git a/svtools/source/uno/contextmenuhelper.cxx b/svtools/source/uno/contextmenuhelper.cxx
index 4fcab9e48adf..48554a3420bd 100644
--- a/svtools/source/uno/contextmenuhelper.cxx
+++ b/svtools/source/uno/contextmenuhelper.cxx
@@ -326,7 +326,7 @@ ContextMenuHelper::executePopupMenu(
if ( nResult > 0 )
{
::rtl::OUString aCommand = lcl_GetItemCommandRecursive( pMenu, nResult );
- if ( aCommand.getLength() > 0 )
+ if ( !aCommand.isEmpty() )
dispatchCommand( xFrame, aCommand );
}
}
@@ -548,7 +548,7 @@ ContextMenuHelper::getLabelFromCommandURL(
{
try
{
- if ( aCmdURL.getLength() > 0 )
+ if ( !aCmdURL.isEmpty() )
{
rtl::OUString aStr;
uno::Sequence< beans::PropertyValue > aPropSeq;
@@ -614,7 +614,7 @@ ContextMenuHelper::completeMenuProperties(
if ( bShowMenuImages )
{
Image aImage;
- if ( aCmdURL.getLength() > 0 )
+ if ( !aCmdURL.isEmpty() )
aImage = getImageFromCommandURL( aCmdURL );
pMenu->SetItemImage( nId, aImage );
}
diff --git a/svtools/source/uno/generictoolboxcontroller.cxx b/svtools/source/uno/generictoolboxcontroller.cxx
index ca3453694d27..3dfc34e77e94 100644
--- a/svtools/source/uno/generictoolboxcontroller.cxx
+++ b/svtools/source/uno/generictoolboxcontroller.cxx
@@ -79,7 +79,7 @@ GenericToolboxController::GenericToolboxController( const Reference< XMultiServi
m_bInitialized = sal_True;
// insert main command to our listener map
- if ( m_aCommandURL.getLength() )
+ if ( !m_aCommandURL.isEmpty() )
m_aListenerMap.insert( URLToDispatchMap::value_type( aCommand, Reference< XDispatch >() ));
}
@@ -114,7 +114,7 @@ throw ( RuntimeException )
if ( m_bInitialized &&
m_xFrame.is() &&
m_xServiceManager.is() &&
- m_aCommandURL.getLength() )
+ !m_aCommandURL.isEmpty() )
{
xURLTransformer = Reference< XURLTransformer >( m_xServiceManager->createInstance(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx
index 331515082429..d10de663f31d 100644
--- a/svtools/source/uno/popupmenucontrollerbase.cxx
+++ b/svtools/source/uno/popupmenucontrollerbase.cxx
@@ -376,7 +376,7 @@ void SAL_CALL PopupMenuControllerBase::initialize( const Sequence< Any >& aArgum
}
}
- if ( xFrame.is() && aCommandURL.getLength() )
+ if ( xFrame.is() && !aCommandURL.isEmpty() )
{
m_xFrame = xFrame;
m_aCommandURL = aCommandURL;
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index 9ff12c840c43..553eecbaecdb 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -193,14 +193,14 @@ sal_Bool SAL_CALL PopupWindowController::supportsService( const OUString& Servic
void SAL_CALL PopupWindowController::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
svt::ToolboxController::initialize( aArguments );
- if( m_aCommandURL.getLength() )
+ if( !m_aCommandURL.isEmpty() )
addStatusListener( m_aCommandURL );
}
// XComponent
void SAL_CALL PopupWindowController::dispose() throw (RuntimeException)
{
- if( m_aCommandURL.getLength() )
+ if( !m_aCommandURL.isEmpty() )
removeStatusListener( m_aCommandURL );
svt::ToolboxController::dispose();
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index c4823fd55eb6..ee6e6455d666 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -173,7 +173,7 @@ throw ( Exception, RuntimeException )
}
}
- if ( m_aCommandURL.getLength() )
+ if ( !m_aCommandURL.isEmpty() )
m_aListenerMap.insert( URLToDispatchMap::value_type( m_aCommandURL, Reference< XDispatch >() ));
}
}
@@ -552,7 +552,7 @@ void StatusbarController::execute( const ::com::sun::star::uno::Sequence< ::com:
if ( m_bInitialized &&
m_xFrame.is() &&
m_xServiceManager.is() &&
- m_aCommandURL.getLength() )
+ !m_aCommandURL.isEmpty() )
{
xURLTransformer = getURLTransformer();
aCommandURL = m_aCommandURL;
@@ -594,7 +594,7 @@ void StatusbarController::execute(
if ( m_bInitialized &&
m_xFrame.is() &&
m_xServiceManager.is() &&
- m_aCommandURL.getLength() )
+ !m_aCommandURL.isEmpty() )
{
Reference< XURLTransformer > xURLTransformer( getURLTransformer() );
aTargetURL.Complete = aCommandURL;
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 4e4970b5d729..1146f7cea924 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -252,7 +252,7 @@ throw ( Exception, RuntimeException )
{
}
- if ( m_aCommandURL.getLength() )
+ if ( !m_aCommandURL.isEmpty() )
m_aListenerMap.insert( URLToDispatchMap::value_type( m_aCommandURL, Reference< XDispatch >() ));
}
}
@@ -373,7 +373,7 @@ throw (::com::sun::star::uno::RuntimeException)
if ( m_bInitialized &&
m_xFrame.is() &&
m_xServiceManager.is() &&
- m_aCommandURL.getLength() )
+ !m_aCommandURL.isEmpty() )
{
aCommandURL = m_aCommandURL;
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index d2e5c55d6086..7b943857e3e2 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -262,7 +262,7 @@ UnoTreeListEntry* TreeControlPeer::createEntry( const Reference< XTreeNode >& xN
UnoTreeListItem * pUnoItem = new UnoTreeListItem( pEntry );
- if( xNode->getNodeGraphicURL().getLength() )
+ if( !xNode->getNodeGraphicURL().isEmpty() )
{
pUnoItem->SetGraphicURL( xNode->getNodeGraphicURL() );
Image aNodeImage;
@@ -275,10 +275,10 @@ UnoTreeListEntry* TreeControlPeer::createEntry( const Reference< XTreeNode >& xN
mpTreeImpl->insert( pEntry, pParent, nPos );
- if( msDefaultExpandedGraphicURL.getLength() )
+ if( !msDefaultExpandedGraphicURL.isEmpty() )
mpTreeImpl->SetExpandedEntryBmp( pEntry, maDefaultExpandedImage );
- if( msDefaultCollapsedGraphicURL.getLength() )
+ if( !msDefaultCollapsedGraphicURL.isEmpty() )
mpTreeImpl->SetCollapsedEntryBmp( pEntry, maDefaultCollapsedImage );
updateEntry( pEntry );
@@ -729,7 +729,7 @@ void SAL_CALL TreeControlPeer::setDefaultExpandedGraphicURL( const ::rtl::OUStri
SolarMutexGuard aGuard;
if( msDefaultExpandedGraphicURL != sDefaultExpandedGraphicURL )
{
- if( sDefaultExpandedGraphicURL.getLength() )
+ if( !sDefaultExpandedGraphicURL.isEmpty() )
loadImage( sDefaultExpandedGraphicURL, maDefaultExpandedImage );
else
maDefaultExpandedImage = Image();
@@ -742,7 +742,7 @@ void SAL_CALL TreeControlPeer::setDefaultExpandedGraphicURL( const ::rtl::OUStri
ImplContextGraphicItem* pContextGraphicItem = dynamic_cast< ImplContextGraphicItem* >( pEntry->GetItem( 0 ) );
if( pContextGraphicItem )
{
- if( pContextGraphicItem->msExpandedGraphicURL.getLength() == 0 )
+ if( pContextGraphicItem->msExpandedGraphicURL.isEmpty() )
rTree.SetExpandedEntryBmp( pEntry, maDefaultExpandedImage );
}
pEntry = rTree.Next( pEntry );
@@ -767,7 +767,7 @@ void SAL_CALL TreeControlPeer::setDefaultCollapsedGraphicURL( const ::rtl::OUStr
SolarMutexGuard aGuard;
if( msDefaultCollapsedGraphicURL != sDefaultCollapsedGraphicURL )
{
- if( sDefaultCollapsedGraphicURL.getLength() )
+ if( !sDefaultCollapsedGraphicURL.isEmpty() )
loadImage( sDefaultCollapsedGraphicURL, maDefaultCollapsedImage );
else
maDefaultCollapsedImage = Image();
@@ -780,7 +780,7 @@ void SAL_CALL TreeControlPeer::setDefaultCollapsedGraphicURL( const ::rtl::OUStr
ImplContextGraphicItem* pContextGraphicItem = dynamic_cast< ImplContextGraphicItem* >( pEntry->GetItem( 0 ) );
if( pContextGraphicItem )
{
- if( pContextGraphicItem->msCollapsedGraphicURL.getLength() == 0 )
+ if( pContextGraphicItem->msCollapsedGraphicURL.isEmpty() )
rTree.SetCollapsedEntryBmp( pEntry, maDefaultCollapsedImage );
}
pEntry = rTree.Next( pEntry );