diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 09:09:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 09:10:05 +0100 |
commit | bcaf496cd250bd4b3b9ab54342200009175e2c4f (patch) | |
tree | 9a6eb3bb5d77cad01813a24902a46cc5762480ed /svtools | |
parent | 8dbc966794f95cb6000f127a8615333de5cd70ff (diff) |
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: Iffdb3d72b24b44cb895f1729aadbbae1802e80bc
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/inc/unoiface.hxx | 4 | ||||
-rw-r--r-- | svtools/source/uno/unoiface.cxx | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx index 8a5865a13047..684c96457022 100644 --- a/svtools/source/inc/unoiface.hxx +++ b/svtools/source/inc/unoiface.hxx @@ -187,7 +187,7 @@ public: ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; protected: - ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const { return ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > ((::com::sun::star::util::XNumberFormatsSupplier*)m_pCurrentSupplier);} + ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const; void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier); sal_Int32 getFormatKey(void) const; void setFormatKey(sal_Int32 nKey); @@ -250,7 +250,7 @@ private: RMItemData GetRMItemData( const ::com::sun::star::container::ContainerEvent& _rEvent ); protected: - ::svt::ORoadmap* GetRoadmap() const { return (::svt::ORoadmap*)GetWindow(); } + ::svt::ORoadmap* GetRoadmap() const; void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) SAL_OVERRIDE; virtual ~SVTXRoadmap(); diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx index bc4ba578a2bf..d59d92bb9fb1 100644 --- a/svtools/source/uno/unoiface.cxx +++ b/svtools/source/uno/unoiface.cxx @@ -1024,6 +1024,10 @@ void SVTXFormattedField::setProperty( const OUString& PropertyName, const ::com: return aReturn; } +::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > SVTXFormattedField::getFormatsSupplier(void) const +{ + return ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > (m_pCurrentSupplier); +} ::com::sun::star::uno::Any SVTXFormattedField::convertEffectiveValue(const ::com::sun::star::uno::Any& rValue) { @@ -1399,6 +1403,10 @@ void SVTXFormattedField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds ) using namespace svt; +::svt::ORoadmap* SVTXRoadmap::GetRoadmap() const +{ + return static_cast<svt::ORoadmap*>(GetWindow()); +} SVTXRoadmap::SVTXRoadmap() : maItemListeners( *this ) { |