summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /chart2/source/model
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/main/ChartModel.cxx4
-rw-r--r--chart2/source/model/template/ChartType.cxx4
-rw-r--r--chart2/source/model/template/ChartType.hxx2
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx4
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.hxx2
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx4
-rw-r--r--chart2/source/model/template/DataInterpreter.hxx2
7 files changed, 3 insertions, 19 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 833ea95df316..02c123477eb9 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -1408,10 +1408,6 @@ void ChartModel::setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd)
mbTimeBased = true;
}
-uno::Reference< uno::XInterface > ChartModel::getChartView()
-{
- return xChartView;
-}
void ChartModel::setWindow( const sal_uInt64 nWindowPtr )
throw (uno::RuntimeException, std::exception)
diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx
index 9fb275f7a61e..db542d0e8edc 100644
--- a/chart2/source/model/template/ChartType.cxx
+++ b/chart2/source/model/template/ChartType.cxx
@@ -66,10 +66,6 @@ ChartType::~ChartType()
m_aDataSeries.clear();
}
-Reference< uno::XComponentContext > ChartType::GetComponentContext() const
-{
- return m_xContext;
-}
// ____ XChartType ____
Reference< chart2::XCoordinateSystem > SAL_CALL
diff --git a/chart2/source/model/template/ChartType.hxx b/chart2/source/model/template/ChartType.hxx
index 82eb80332504..18dfaea03ba4 100644
--- a/chart2/source/model/template/ChartType.hxx
+++ b/chart2/source/model/template/ChartType.hxx
@@ -63,7 +63,7 @@ protected:
explicit ChartType( const ChartType & rOther );
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
- GetComponentContext() const;
+ GetComponentContext() const { return m_xContext;}
// ____ XChartType ____
// still abstract ! implement !
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 8be651a75f7f..de109e85a98a 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -898,10 +898,6 @@ void ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem(
comphelper::copyProperties( xSource, xDestination );
}
-Reference< uno::XComponentContext > ChartTypeTemplate::GetComponentContext() const
-{
- return m_xContext;
-}
} // namespace chart
diff --git a/chart2/source/model/template/ChartTypeTemplate.hxx b/chart2/source/model/template/ChartTypeTemplate.hxx
index 39f3e0c5e742..b0dc88c4af09 100644
--- a/chart2/source/model/template/ChartTypeTemplate.hxx
+++ b/chart2/source/model/template/ChartTypeTemplate.hxx
@@ -246,7 +246,7 @@ protected:
::com::sun::star::chart2::XCoordinateSystem > > & rCoordSys );
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
- GetComponentContext() const;
+ GetComponentContext() const { return m_xContext;}
static void copyPropertiesFromOldToNewCoordianteSystem(
const ::com::sun::star::uno::Sequence<
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index ce454089b868..67e50fb38db9 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -57,10 +57,6 @@ DataInterpreter::DataInterpreter(
DataInterpreter::~DataInterpreter()
{}
-Reference< uno::XComponentContext > DataInterpreter::GetComponentContext() const
-{
- return m_xContext;
-}
// ____ XDataInterpreter ____
InterpretedData SAL_CALL DataInterpreter::interpretDataSource(
diff --git a/chart2/source/model/template/DataInterpreter.hxx b/chart2/source/model/template/DataInterpreter.hxx
index 9f49db3d29dd..af589f13bf63 100644
--- a/chart2/source/model/template/DataInterpreter.hxx
+++ b/chart2/source/model/template/DataInterpreter.hxx
@@ -38,7 +38,7 @@ public:
virtual ~DataInterpreter();
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
- GetComponentContext() const;
+ GetComponentContext() const { return m_xContext;}
/// XServiceInfo declarations
APPHELPER_XSERVICEINFO_DECL()