summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/mmaddressblockpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/dbui/mmaddressblockpage.cxx')
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 3116244765bb..b5aa5de8b0a6 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -430,7 +430,7 @@ void SwSelectAddressBlockDialog::SetSettings(
{
if(bIsCountry)
{
- rCountry.getLength() ? m_aDependentRB.Check() : m_aAlwaysRB.Check();
+ !rCountry.isEmpty() ? m_aDependentRB.Check() : m_aAlwaysRB.Check();
m_aCountryED.SetText(rCountry);
}
else
@@ -1052,7 +1052,7 @@ SwAssignFieldsControl::SwAssignFieldsControl(
FixedInfo* pNewPreview = new FixedInfo(&m_aWindow, ResId( FT_PREVIEW, *rResId.GetResMgr() ));
//select the ListBox
//if there is an assignment
- if(aAssignments.getLength() > i && aAssignments[i].getLength())
+ if(aAssignments.getLength() > i && !aAssignments[i].isEmpty())
pNewLB->SelectEntry(aAssignments[i]);
else //otherwise the current column name may match one of the db columns
pNewLB->SelectEntry(rHeader);