diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-11-30 18:33:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-10 21:12:20 +0000 |
commit | 8aac6ecc58fa2c475f34817e607efb6a31317898 (patch) | |
tree | f54e8b33783d244518c073d0615f054b8e468774 /sw/source/ui/dbui | |
parent | 5f77059ff156ecbd69967f278d3e8f814c15958e (diff) |
Use Any specializations for bool, instead of SetValue
Change-Id: I7a5babe494bdb09a71164ea74d7be3f6bf985ff6
Reviewed-on: https://gerrit.libreoffice.org/13215
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index e565f8af2bcc..4bbcd590f175 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -1559,18 +1559,10 @@ void SwInsertDBColAutoPilot::Commit() if( pTAutoFmt ) pValues[6].Value <<= pTAutoFmt->GetName(); - const Type& rBoolType = ::getBooleanCppuType(); - sal_Bool bTmp = m_pRbAsTable->IsChecked(); - pValues[7].Value.setValue(&bTmp, rBoolType); - - bTmp = m_pRbAsField->IsChecked(); - pValues[8].Value.setValue(&bTmp, rBoolType); - - bTmp = m_pCbTableHeadon->IsChecked(); - pValues[9].Value.setValue(&bTmp, rBoolType); - - bTmp = m_pRbHeadlEmpty->IsChecked(); - pValues[10].Value.setValue(&bTmp, rBoolType); + pValues[7].Value <<= m_pRbAsTable->IsChecked(); + pValues[8].Value <<= m_pRbAsField->IsChecked(); + pValues[9].Value <<= m_pCbTableHeadon->IsChecked(); + pValues[10].Value <<= m_pRbHeadlEmpty->IsChecked(); SetSetProperties(OUString(), aValues); @@ -1599,11 +1591,8 @@ void SwInsertDBColAutoPilot::Commit() pSubValues[i].Name = pSubNodeNames[i]; pSubValues[0].Value <<= pColumn->sColumn; pSubValues[1].Value <<= i; - - sal_Bool bVal = pColumn->bHasFmt; - pSubValues[2].Value.setValue(&bVal, rBoolType); - bVal = pColumn->bIsDBFmt; - pSubValues[3].Value.setValue(&bVal, rBoolType); + pSubValues[2].Value <<= pColumn->bHasFmt; + pSubValues[3].Value <<= pColumn->bIsDBFmt; SwStyleNameMapper::FillUIName( RES_POOLCOLL_STANDARD, sTmp ); const SvNumberformat* pNF = rNFmtr.GetEntry( pColumn->nUsrNumFmt ); |