summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-09-03 22:17:17 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-09-03 23:21:28 -0400
commit44cfb3c3bcb5a84191d3935b1def9e09d7ba3ab3 (patch)
treea09ff4486adc57e78153de70cfacdf9861e1d175 /chart2
parentbool cleanup in VDiagram. (diff)
downloadcore-44cfb3c3bcb5a84191d3935b1def9e09d7ba3ab3.tar.gz
core-44cfb3c3bcb5a84191d3935b1def9e09d7ba3ab3.zip
Service manager class member not used. Remove it.
Change-Id: I1734fb6aa100f25e317e15f678f7582353283e73
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/chartview/DrawModelWrapper.hxx5
-rw-r--r--chart2/source/view/main/DrawModelWrapper.cxx6
2 files changed, 3 insertions, 8 deletions
diff --git a/chart2/source/inc/chartview/DrawModelWrapper.hxx b/chart2/source/inc/chartview/DrawModelWrapper.hxx
index 34646a5b3199..dc612dc08884 100644
--- a/chart2/source/inc/chartview/DrawModelWrapper.hxx
+++ b/chart2/source/inc/chartview/DrawModelWrapper.hxx
@@ -37,7 +37,6 @@ namespace chart
class OOO_DLLPUBLIC_CHARTVIEW DrawModelWrapper : private SdrModel
{
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiComponentFactory > m_xMCF;
SfxItemPool* m_pChartItemPool;
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > m_xMainDrawPage;
@@ -49,8 +48,8 @@ private:
DrawModelWrapper();
public:
- SAL_DLLPRIVATE DrawModelWrapper(::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & xContext );
+ SAL_DLLPRIVATE DrawModelWrapper(
+ const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>& xContext );
SAL_DLLPRIVATE virtual ~DrawModelWrapper();
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getShapeFactory();
diff --git a/chart2/source/view/main/DrawModelWrapper.cxx b/chart2/source/view/main/DrawModelWrapper.cxx
index 2a0abf188ce1..2f6606acf8cc 100644
--- a/chart2/source/view/main/DrawModelWrapper.cxx
+++ b/chart2/source/view/main/DrawModelWrapper.cxx
@@ -102,10 +102,8 @@ OutputDevice * lcl_GetParentRefDevice( const uno::Reference< frame::XModel > & x
namespace chart
{
-DrawModelWrapper::DrawModelWrapper(
- uno::Reference<uno::XComponentContext> const & xContext )
+DrawModelWrapper::DrawModelWrapper( const uno::Reference<uno::XComponentContext>& /*xContext*/ )
: SdrModel( SvtPathOptions().GetPalettePath() )
- , m_xMCF(0)
, m_pChartItemPool(0)
, m_xMainDrawPage(0)
, m_xHiddenDrawPage(0)
@@ -113,8 +111,6 @@ DrawModelWrapper::DrawModelWrapper(
{
m_pChartItemPool = ChartItemPool::CreateChartItemPool();
- m_xMCF = xContext->getServiceManager();
-
SetScaleUnit(MAP_100TH_MM);
SetScaleFraction(Fraction(1, 1));
SetDefaultFontHeight(423); // 12pt