From 65f2d5c9f7aab607e83a4876bca70c330850d345 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 30 Aug 2012 23:21:46 +0200 Subject: -Werror,-Wunused-private-field (Clang towards 3.2) Change-Id: Idea1fd2769c2431906d4898c0ec935f20bddc391 --- oox/source/ppt/buildlistcontext.cxx | 11 +---------- oox/source/ppt/buildlistcontext.hxx | 6 +----- oox/source/ppt/slidetimingcontext.cxx | 4 ++-- 3 files changed, 4 insertions(+), 17 deletions(-) (limited to 'oox/source/ppt') diff --git a/oox/source/ppt/buildlistcontext.cxx b/oox/source/ppt/buildlistcontext.cxx index aec83fe05374..fe8516259323 100644 --- a/oox/source/ppt/buildlistcontext.cxx +++ b/oox/source/ppt/buildlistcontext.cxx @@ -21,19 +21,10 @@ #include #include "oox/helper/attributelist.hxx" - -using namespace ::oox::core; -using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::xml::sax; -using ::rtl::OUString; - namespace oox { namespace ppt { - BuildListContext::BuildListContext( FragmentHandler2& rParent, - const Reference< XFastAttributeList >& /*xAttribs*/, - TimeNodePtrList & aTimeNodeList) + BuildListContext::BuildListContext( FragmentHandler2& rParent ) : FragmentHandler2( rParent ) - , maTimeNodeList( aTimeNodeList ) , mbInBldGraphic( false ) , mbBuildAsOne( false ) { diff --git a/oox/source/ppt/buildlistcontext.hxx b/oox/source/ppt/buildlistcontext.hxx index 1cf97b0de20c..8ad7156576ef 100644 --- a/oox/source/ppt/buildlistcontext.hxx +++ b/oox/source/ppt/buildlistcontext.hxx @@ -22,7 +22,6 @@ #ifndef OOX_PPT_BUILDLISTCONTEXT #define OOX_PPT_BUILDLISTCONTEXT -#include "oox/ppt/timenode.hxx" #include "oox/core/fragmenthandler2.hxx" namespace oox { namespace ppt { @@ -33,9 +32,7 @@ namespace oox { namespace ppt { : public ::oox::core::FragmentHandler2 { public: - BuildListContext( ::oox::core::FragmentHandler2& rParent, - const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs, - TimeNodePtrList & aTimeNodeList); + BuildListContext( ::oox::core::FragmentHandler2& rParent ); ~BuildListContext( ); @@ -43,7 +40,6 @@ namespace oox { namespace ppt { virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ); private: - TimeNodePtrList & maTimeNodeList; bool mbInBldGraphic; bool mbBuildAsOne; }; diff --git a/oox/source/ppt/slidetimingcontext.cxx b/oox/source/ppt/slidetimingcontext.cxx index ae709c47ce94..2bcdc75209ae 100644 --- a/oox/source/ppt/slidetimingcontext.cxx +++ b/oox/source/ppt/slidetimingcontext.cxx @@ -51,12 +51,12 @@ SlideTimingContext::~SlideTimingContext() throw() } -::oox::core::ContextHandlerRef SlideTimingContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) +::oox::core::ContextHandlerRef SlideTimingContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& ) { switch( aElementToken ) { case PPT_TOKEN( bldLst ): - return new BuildListContext( *this, rAttribs.getFastAttributeList(), maTimeNodeList ); + return new BuildListContext( *this ); case PPT_TOKEN( extLst ): return this; case PPT_TOKEN( tnLst ): -- cgit