Kaydet (Commit) c8adf591 authored tarafından Matteo Casalin's avatar Matteo Casalin

Reduce temporaries

Change-Id: I50c22563c7804efe0dd125468d13e81b41b23702
Reviewed-on: https://gerrit.libreoffice.org/67317
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst a2d4d00c
...@@ -140,8 +140,7 @@ void SwFieldRefPage::dispose() ...@@ -140,8 +140,7 @@ void SwFieldRefPage::dispose()
IMPL_LINK_NOARG(SwFieldRefPage, ModifyHdl_Impl, Edit&, void) IMPL_LINK_NOARG(SwFieldRefPage, ModifyHdl_Impl, Edit&, void)
{ {
OUString sFilter = comphelper::string::strip(m_pFilterED->GetText(), ' '); UpdateSubType(comphelper::string::strip(m_pFilterED->GetText(), ' '));
UpdateSubType(sFilter);
} }
// #i83479# // #i83479#
...@@ -269,12 +268,11 @@ void SwFieldRefPage::Reset(const SfxItemSet* ) ...@@ -269,12 +268,11 @@ void SwFieldRefPage::Reset(const SfxItemSet* )
if( !IsRefresh() ) if( !IsRefresh() )
{ {
sal_Int32 nIdx{ 0 }; sal_Int32 nIdx{ 0 };
OUString sUserData = GetUserData(); const OUString sUserData = GetUserData();
if(!IsRefresh() && sUserData.getToken(0, ';', nIdx). if(!IsRefresh() && sUserData.getToken(0, ';', nIdx).
equalsIgnoreAsciiCase(USER_DATA_VERSION_1)) equalsIgnoreAsciiCase(USER_DATA_VERSION_1))
{ {
OUString sVal = sUserData.getToken(0, ';', nIdx); const sal_uInt16 nVal = static_cast< sal_uInt16 >(sUserData.getToken(0, ';', nIdx).toInt32());
const sal_uInt16 nVal = static_cast< sal_uInt16 >(sVal.toInt32());
if(nVal != USHRT_MAX) if(nVal != USHRT_MAX)
{ {
for(sal_Int32 i = 0; i < m_pTypeLB->GetEntryCount(); i++) for(sal_Int32 i = 0; i < m_pTypeLB->GetEntryCount(); i++)
...@@ -393,8 +391,7 @@ IMPL_LINK_NOARG(SwFieldRefPage, TypeHdl, ListBox&, void) ...@@ -393,8 +391,7 @@ IMPL_LINK_NOARG(SwFieldRefPage, TypeHdl, ListBox&, void)
sal_uInt16 nTypeId = static_cast<sal_uInt16>(reinterpret_cast<sal_uLong>(m_pTypeLB->GetEntryData(GetTypeSel()))); sal_uInt16 nTypeId = static_cast<sal_uInt16>(reinterpret_cast<sal_uLong>(m_pTypeLB->GetEntryData(GetTypeSel())));
// fill selection-ListBox // fill selection-ListBox
OUString sFilter = comphelper::string::strip(m_pFilterED->GetText(), ' '); UpdateSubType(comphelper::string::strip(m_pFilterED->GetText(), ' '));
UpdateSubType(sFilter);
bool bName = false; bool bName = false;
nFieldDlgFormatSel = 0; nFieldDlgFormatSel = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment