diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-26 17:21:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-26 20:37:39 +0100 |
commit | 225d50da607a8a4115f45b2c433cb280fac70361 (patch) | |
tree | c41a2f2d1423cb0b37efce53c3898986d2b85b8a /sw | |
parent | e8be58a10bce944525b4186db64629f526cf20ce (diff) |
convert GetSelectEntry family to OUString
Change-Id: Id3282e2efd6573bed7fd172021dae9aee9342fae
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/fldvar.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index 70f80d2175e6..292a2deee43e 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -1153,7 +1153,7 @@ sal_Bool SwFldVarPage::FillItemSet(SfxItemSet& ) { nSubType = (nFormat == ULONG_MAX) ? nsSwGetSetExpType::GSE_STRING : nsSwGetSetExpType::GSE_EXPR; - if (nFormat == ULONG_MAX && aNumFormatLB.GetSelectEntry().Equals(SW_RESSTR(FMT_USERVAR_CMD))) + if (nFormat == ULONG_MAX && aNumFormatLB.GetSelectEntry() == SW_RESSTR(FMT_USERVAR_CMD)) nSubType |= nsSwExtendedSubType::SUB_CMD; if (aInvisibleCB.IsChecked()) diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index d98b2d8ec603..c90851e59062 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2632,7 +2632,7 @@ IMPL_LINK(SwTOXEntryTabPage, TokenSelectedHdl, SwFormToken*, pToken) if(aAuthInsertPB.IsVisible()) { bool bText = TOKEN_TEXT == pToken->eTokenType; - aAuthInsertPB.Enable(bText && aAuthFieldsLB.GetSelectEntry().Len()); + aAuthInsertPB.Enable(bText && !aAuthFieldsLB.GetSelectEntry().isEmpty()); aAuthRemovePB.Enable(!bText); } diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index c754910561fb..1e1d863cc9dd 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -1217,7 +1217,7 @@ IMPL_LINK( SwAuthorMarkPane, CompEntryHdl, ListBox*, pBox) pEntry->GetAuthorField((ToxAuthorityField)i) : OUString(); } } - if(!pBox->GetSelectEntry().Len()) + if (pBox->GetSelectEntry().isEmpty()) { for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++) m_sFields[i] = aEmptyStr; |