summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs
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 /svtools/source/dialogs
parent38423e0ad2a8e2a902aeb37391aef0b543c09d68 (diff)
Fix for fdo43460 Part XXXVII getLength() to isEmpty()
Part XXXVII Modules svtools
Diffstat (limited to 'svtools/source/dialogs')
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx4
-rw-r--r--svtools/source/dialogs/insdlg.cxx2
2 files changed, 3 insertions, 3 deletions
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 );