diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-21 12:42:16 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-21 14:17:56 +0200 |
commit | 2f3ea8dfbc7dedc785cd07ad0b681a0da3904a80 (patch) | |
tree | 533c450fb3e8e5b75d5ccdc9dc6c358da481513f /svl/source | |
parent | 54409159b8a12ca3d387e2ff2a2e1ff9dad1a2a3 (diff) |
refactor out some com::sun::star typedefs
which mostly serve to make the code harder to read
Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/filepicker/pickerhistory.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svl/source/filepicker/pickerhistory.cxx b/svl/source/filepicker/pickerhistory.cxx index 84cf46326ef4..29cc03b8e4eb 100644 --- a/svl/source/filepicker/pickerhistory.cxx +++ b/svl/source/filepicker/pickerhistory.cxx @@ -27,8 +27,7 @@ namespace svt namespace { - typedef ::com::sun::star::uno::WeakReference< XInterface > InterfaceAdapter; - typedef ::std::vector< InterfaceAdapter > InterfaceArray; + typedef ::std::vector< css::uno::WeakReference< XInterface > > InterfaceArray; InterfaceArray& getFolderPickerHistory() @@ -64,14 +63,14 @@ namespace svt if ( aCleanedHistory.empty() ) // make some room, assume that all interfaces (from here on) are valid aCleanedHistory.reserve( _rHistory.size() - ( aLoop - _rHistory.begin() ) ); - aCleanedHistory.push_back( InterfaceAdapter( xCurrent ) ); + aCleanedHistory.push_back( css::uno::WeakReference< XInterface >( xCurrent ) ); } } _rHistory.swap( aCleanedHistory ); } // then push_back the picker - _rHistory.push_back( InterfaceAdapter( _rxPicker ) ); + _rHistory.push_back( css::uno::WeakReference< XInterface >( _rxPicker ) ); } } |