diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-17 15:57:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-18 09:37:32 +0200 |
commit | 371c8f7a750adcdecd32aad9c93a8eb235b908be (patch) | |
tree | 91635c94f92cc3a60f859b5a0498f95b73994d21 /svx | |
parent | eddd7646d672ea9b0561dacb09da224d098e531e (diff) |
inline unnecessary typedef
Change-Id: Ie33e6b9038d6c18482c2ba7aa47f62d23973ab08
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmpgeimp.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx index 2a7a4fb97356..22a0a3336411 100644 --- a/svx/source/form/fmpgeimp.cxx +++ b/svx/source/form/fmpgeimp.cxx @@ -77,12 +77,10 @@ FmFormPageImpl::FmFormPageImpl( FmFormPage& _rPage ) namespace { - typedef Reference< XInterface > FormComponent; - class FormComponentInfo { public: - size_t childCount( const FormComponent& _component ) const + size_t childCount( const Reference< XInterface >& _component ) const { Reference< XIndexAccess > xContainer( _component, UNO_QUERY ); if ( xContainer.is() ) @@ -90,14 +88,14 @@ namespace return 0; } - FormComponent getChild( const FormComponent& _component, size_t _index ) const + Reference< XInterface > getChild( const Reference< XInterface >& _component, size_t _index ) const { Reference< XIndexAccess > xContainer( _component, UNO_QUERY_THROW ); - return FormComponent( xContainer->getByIndex( _index ), UNO_QUERY ); + return Reference< XInterface >( xContainer->getByIndex( _index ), UNO_QUERY ); } }; - typedef ::std::pair< FormComponent, FormComponent > FormComponentPair; + typedef ::std::pair< Reference< XInterface >, Reference< XInterface > > FormComponentPair; class FormHierarchyComparator { |