diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:05:19 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:05:19 +0000 |
commit | f1abc6ef1a01abb9e6b305b9f32309f11d1b0f50 (patch) | |
tree | 21367bcbc407afdcb7378562c802ce4631d9faa3 | |
parent | 794e4546797b09f4945d89e0847cab3127371326 (diff) |
INTEGRATION: CWS chart11 (1.5.38); FILE MERGED
2007/07/31 12:56:45 bm 1.5.38.1: #i80084# avoid usage of map operator[] with enums as keys, simplify initialization of default property values
-rw-r--r-- | chart2/source/model/template/ColumnChartType.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/chart2/source/model/template/ColumnChartType.cxx b/chart2/source/model/template/ColumnChartType.cxx index 5f50dce9da74..d028d7549fc4 100644 --- a/chart2/source/model/template/ColumnChartType.cxx +++ b/chart2/source/model/template/ColumnChartType.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ColumnChartType.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: vg $ $Date: 2007-05-22 18:46:59 $ + * last change: $Author: vg $ $Date: 2007-09-18 15:05:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -83,15 +83,11 @@ void lcl_AddDefaultsToMap( { Sequence< sal_Int32 > aSeq(2); - aSeq[0]=aSeq[1]=0; - OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_BARCHARTTYPE_OVERLAP_SEQUENCE )); - rOutMap[ PROP_BARCHARTTYPE_OVERLAP_SEQUENCE ] = - uno::makeAny( aSeq ); + aSeq[0] = aSeq[1] = 0; + ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_BARCHARTTYPE_OVERLAP_SEQUENCE, aSeq ); - aSeq[0]=aSeq[1]=100; - OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE )); - rOutMap[ PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE ] = - uno::makeAny( aSeq ); + aSeq[0] = aSeq[1] = 100; + ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE, aSeq ); } const Sequence< Property > & lcl_GetPropertySequence() |