summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-28 14:35:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-03 07:26:26 +0000
commit82e9cfc9910005e55f57ab13dd685f8860f47d27 (patch)
treef0fa33b4a665bef70f2ffa3e5b73727a9e6d8057 /extensions
parenteb7593daa4bac21bd68182c8bbbd3ee3bd7b64dd (diff)
use Any constructor for bool values, instead of temporary vars
mostly found with: git grep -n 'setValue.*cppu.*UnoType.*bool.*get' Change-Id: Ie8e5aa6402d25dbe90b0f492031a245bb222c1a5 Reviewed-on: https://gerrit.libreoffice.org/24464 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/datman.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index a11d6310c1bd..dce92b1d00c2 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -1369,9 +1369,7 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel(
xPropSet->setPropertyValue("StringItemList", aAny);
- sal_Bool bTrue = true;
- aAny.setValue( &bTrue, cppu::UnoType<bool>::get() );
- xPropSet->setPropertyValue( "Dropdown", aAny );
+ xPropSet->setPropertyValue( "Dropdown", Any(true) );
}
Reference< XFormComponent > aFormComp(xModel,UNO_QUERY );