diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 12:15:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:16:58 +0100 |
commit | 3471d7eef30df7e2e1288b8c7708d3f3857c02ae (patch) | |
tree | 4c1d14ef45d5c2f219e70d31069cd222df1c222e /chart2/source/model/template/BubbleChartType.cxx | |
parent | 6404ed19adf63180adf4bd082323ae4955aee8bf (diff) |
overly static
Diffstat (limited to 'chart2/source/model/template/BubbleChartType.cxx')
-rw-r--r-- | chart2/source/model/template/BubbleChartType.cxx | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx index 2a148068ba70..9be27dd11f0e 100644 --- a/chart2/source/model/template/BubbleChartType.cxx +++ b/chart2/source/model/template/BubbleChartType.cxx @@ -178,17 +178,12 @@ Reference< chart2::XCoordinateSystem > SAL_CALL uno::Sequence< ::rtl::OUString > SAL_CALL BubbleChartType::getSupportedMandatoryRoles() throw (uno::RuntimeException) { - static uno::Sequence< ::rtl::OUString > aMandRolesSeq; - - if( aMandRolesSeq.getLength() == 0 ) - { - aMandRolesSeq.realloc( 4 ); - aMandRolesSeq[0] = C2U( "label" ); - aMandRolesSeq[1] = C2U( "values-x" ); - aMandRolesSeq[2] = C2U( "values-y" ); - aMandRolesSeq[3] = C2U( "values-size" ); - } - + uno::Sequence< ::rtl::OUString > aMandRolesSeq(4); + aMandRolesSeq.realloc( 4 ); + aMandRolesSeq[0] = C2U( "label" ); + aMandRolesSeq[1] = C2U( "values-x" ); + aMandRolesSeq[2] = C2U( "values-y" ); + aMandRolesSeq[3] = C2U( "values-size" ); return aMandRolesSeq; } |