diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:04:38 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:04:38 +0000 |
commit | 0d9cb8679ce7b5c1b9b1f0b64b27581425f866f3 (patch) | |
tree | 575113b2a5ab00b30e2cf9ff8e65b239939dde31 /chart2 | |
parent | 844fc6dbcc379fe3c63cf620ce9ed3be76fae958 (diff) |
INTEGRATION: CWS chart11 (1.3.2); FILE MERGED
2007/07/31 12:56:45 bm 1.3.2.1: #i80084# avoid usage of map operator[] with enums as keys, simplify initialization of default property values
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/main/StockBar.cxx | 7 | ||||
-rw-r--r-- | chart2/source/model/template/CandleStickChartType.cxx | 17 |
2 files changed, 8 insertions, 16 deletions
diff --git a/chart2/source/model/main/StockBar.cxx b/chart2/source/model/main/StockBar.cxx index 8f127ca0cc22..7b333412055a 100644 --- a/chart2/source/model/main/StockBar.cxx +++ b/chart2/source/model/main/StockBar.cxx @@ -4,9 +4,9 @@ * * $RCSfile: StockBar.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2007-07-25 08:51:31 $ + * last change: $Author: vg $ $Date: 2007-09-18 15:03:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -103,8 +103,7 @@ void lcl_AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap ) { // override other defaults - rOutMap[ ::chart::FillProperties::PROP_FILL_COLOR ] = - uno::makeAny( sal_Int32( 0xffffff) ); // white + ::chart::PropertyHelper::setPropertyValue< sal_Int32 >( rOutMap, ::chart::FillProperties::PROP_FILL_COLOR, 0xffffff ); // white } ::cppu::IPropertyArrayHelper & lcl_getInfoHelper() diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx index 06b23c0127fd..7622df2c0065 100644 --- a/chart2/source/model/template/CandleStickChartType.cxx +++ b/chart2/source/model/template/CandleStickChartType.cxx @@ -4,9 +4,9 @@ * * $RCSfile: CandleStickChartType.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2007-07-25 08:53:01 $ + * last change: $Author: vg $ $Date: 2007-09-18 15:04:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -112,16 +112,9 @@ void lcl_AddDefaultsToMap( { ::osl::MutexGuard aGuard( rMutex ); // must match default in CTOR! - OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_CANDLESTICKCHARTTYPE_JAPANESE )); - rOutMap[ PROP_CANDLESTICKCHARTTYPE_JAPANESE ] = - uno::makeAny( false ); - - OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_CANDLESTICKCHARTTYPE_SHOW_FIRST )); - rOutMap[ PROP_CANDLESTICKCHARTTYPE_SHOW_FIRST ] = - uno::makeAny( false ); - OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_CANDLESTICKCHARTTYPE_SHOW_HIGH_LOW )); - rOutMap[ PROP_CANDLESTICKCHARTTYPE_SHOW_HIGH_LOW ] = - uno::makeAny( true ); + ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CANDLESTICKCHARTTYPE_JAPANESE, false ); + ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CANDLESTICKCHARTTYPE_SHOW_FIRST, false ); + ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_CANDLESTICKCHARTTYPE_SHOW_HIGH_LOW, true ); } const Sequence< Property > & lcl_GetPropertySequence() |