summaryrefslogtreecommitdiffstats
path: root/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-12-05 14:06:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-05 19:57:01 +0100
commitcba21368d8297e4039c907ff847a3074ece09599 (patch)
treec788fa1a53e4024381bc173310cfd091673200c0 /chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
parentincrease maximum document thumbnail size from 256 to 512 (diff)
downloadcore-cba21368d8297e4039c907ff847a3074ece09599.tar.gz
core-cba21368d8297e4039c907ff847a3074ece09599.zip
speed up property access in charts
uno::Any copy and assign is fairly hot, so try and do those operations in one step Change-Id: I110566ba98788d5a658d229433de291c8cdf146c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126377 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/template/ColumnLineChartTypeTemplate.cxx')
-rw-r--r--chart2/source/model/template/ColumnLineChartTypeTemplate.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
index 889ca43f40e7..fad59386b2b3 100644
--- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
@@ -136,13 +136,14 @@ ColumnLineChartTypeTemplate::~ColumnLineChartTypeTemplate()
{}
// ____ OPropertySet ____
-uno::Any ColumnLineChartTypeTemplate::GetDefaultValue( sal_Int32 nHandle ) const
+void ColumnLineChartTypeTemplate::GetDefaultValue( sal_Int32 nHandle, uno::Any& rAny ) const
{
const tPropertyValueMap& rStaticDefaults = *StaticColumnLineChartTypeTemplateDefaults::get();
tPropertyValueMap::const_iterator aFound( rStaticDefaults.find( nHandle ) );
if( aFound == rStaticDefaults.end() )
- return uno::Any();
- return (*aFound).second;
+ rAny.clear();
+ else
+ rAny = (*aFound).second;
}
::cppu::IPropertyArrayHelper & SAL_CALL ColumnLineChartTypeTemplate::getInfoHelper()