summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-29 18:44:32 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-29 20:26:06 +0200
commit140e5eabbfa6f91dc34d2d8181e0ee0508a5a271 (patch)
tree7889fcbce637a773c04c65ed6fc9950d9d30bee5 /chart2/source/view/axes
parentd3affcac9a74065d8cf566a5288447856b84d59b (diff)
replace more auto_ptr with scoped_ptr
Change-Id: Ia96fcc857e028c7c14186b9560153e7580e6b4fb
Diffstat (limited to 'chart2/source/view/axes')
-rw-r--r--chart2/source/view/axes/VPolarRadiusAxis.cxx2
-rw-r--r--chart2/source/view/axes/VPolarRadiusAxis.hxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/chart2/source/view/axes/VPolarRadiusAxis.cxx b/chart2/source/view/axes/VPolarRadiusAxis.cxx
index 0a2133ce52cf..4b6d8e2ca832 100644
--- a/chart2/source/view/axes/VPolarRadiusAxis.cxx
+++ b/chart2/source/view/axes/VPolarRadiusAxis.cxx
@@ -41,7 +41,7 @@ VPolarRadiusAxis::VPolarRadiusAxis( const AxisProperties& rAxisProperties
m_aAxisProperties.m_aLabelAlignment=LABEL_ALIGN_RIGHT;
m_aAxisProperties.init();
- m_apAxisWithLabels = std::auto_ptr<VCartesianAxis>( new VCartesianAxis(
+ m_apAxisWithLabels.reset( new VCartesianAxis(
m_aAxisProperties,xNumberFormatsSupplier,1/*nDimensionIndex*/,nDimensionCount
,new PolarPlottingPositionHelper() ) );
}
diff --git a/chart2/source/view/axes/VPolarRadiusAxis.hxx b/chart2/source/view/axes/VPolarRadiusAxis.hxx
index 7d16ffba9f2a..126817b37790 100644
--- a/chart2/source/view/axes/VPolarRadiusAxis.hxx
+++ b/chart2/source/view/axes/VPolarRadiusAxis.hxx
@@ -20,8 +20,7 @@
#define _CHART2_VPOLARRADIUSAXIS_HXX
#include "VPolarAxis.hxx"
-
-#include <memory>
+#include <boost/scoped_ptr.hpp>
namespace chart
{
@@ -74,7 +73,7 @@ protected: //methods
virtual bool prepareShapeCreation();
private: //member
- std::auto_ptr<VCartesianAxis> m_apAxisWithLabels;
+ boost::scoped_ptr<VCartesianAxis> m_apAxisWithLabels;
};
} //namespace chart