diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-06-11 13:14:07 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-06-12 07:35:25 +0200 |
commit | 51aa57cd8ed46d28262e0d315328231f0fa814f4 (patch) | |
tree | a1b850e365eea2a80307e59febe3b20272e14d97 /package | |
parent | f9e9012e75afe4418f4ebe652fa99a1fa2348a71 (diff) |
tdf#96099 Remove some trivial std::vector typedefs
Cleanup package, reportdesign, sal.
Change-Id: I8622465886f7ec97700b00740ea37d40767ec98e
Reviewed-on: https://gerrit.libreoffice.org/55616
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/ohierarchyholder.cxx | 12 | ||||
-rw-r--r-- | package/source/xstor/ohierarchyholder.hxx | 11 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 6 |
3 files changed, 14 insertions, 15 deletions
diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx index 508107ac7c53..5f6cf2291b54 100644 --- a/package/source/xstor/ohierarchyholder.cxx +++ b/package/source/xstor/ohierarchyholder.cxx @@ -35,7 +35,7 @@ using namespace ::com::sun::star; // OHierarchyHolder_Impl -uno::Reference< embed::XExtendedStorageStream > OHierarchyHolder_Impl::GetStreamHierarchically( sal_Int32 nStorageMode, OStringList_Impl& aListPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData ) +uno::Reference< embed::XExtendedStorageStream > OHierarchyHolder_Impl::GetStreamHierarchically( sal_Int32 nStorageMode, std::vector<OUString>& aListPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData ) { uno::Reference< embed::XStorage > xOwnStor( m_xWeakOwnStorage.get(), uno::UNO_QUERY_THROW ); @@ -50,7 +50,7 @@ uno::Reference< embed::XExtendedStorageStream > OHierarchyHolder_Impl::GetStream return xResult; } -void OHierarchyHolder_Impl::RemoveStreamHierarchically( OStringList_Impl& aListPath ) +void OHierarchyHolder_Impl::RemoveStreamHierarchically( std::vector<OUString>& aListPath ) { uno::Reference< embed::XStorage > xOwnStor( m_xWeakOwnStorage.get(), uno::UNO_QUERY_THROW ); @@ -58,9 +58,9 @@ void OHierarchyHolder_Impl::RemoveStreamHierarchically( OStringList_Impl& aListP } // static -OStringList_Impl OHierarchyHolder_Impl::GetListPathFromString( const OUString& aPath ) +std::vector<OUString> OHierarchyHolder_Impl::GetListPathFromString( const OUString& aPath ) { - OStringList_Impl aResult; + std::vector<OUString> aResult; sal_Int32 nIndex = 0; do { @@ -77,7 +77,7 @@ OStringList_Impl OHierarchyHolder_Impl::GetListPathFromString( const OUString& a // OHierarchyElement_Impl -uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStreamHierarchically( sal_Int32 nStorageMode, OStringList_Impl& aListPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData ) +uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStreamHierarchically( sal_Int32 nStorageMode, std::vector<OUString>& aListPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -161,7 +161,7 @@ uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStrea return xResult; } -void OHierarchyElement_Impl::RemoveStreamHierarchically( OStringList_Impl& aListPath ) +void OHierarchyElement_Impl::RemoveStreamHierarchically( std::vector<OUString>& aListPath ) { ::osl::MutexGuard aGuard( m_aMutex ); diff --git a/package/source/xstor/ohierarchyholder.hxx b/package/source/xstor/ohierarchyholder.hxx index 3d18c8d407da..317a4d9b329c 100644 --- a/package/source/xstor/ohierarchyholder.hxx +++ b/package/source/xstor/ohierarchyholder.hxx @@ -38,7 +38,6 @@ struct OHierarchyElement_Impl; typedef std::unordered_map< OUString, ::rtl::Reference< OHierarchyElement_Impl > > OHierarchyElementList_Impl; -typedef ::std::vector< OUString > OStringList_Impl; typedef ::std::list< css::uno::WeakReference< css::embed::XExtendedStorageStream > > OWeakStorRefList_Impl; @@ -75,11 +74,11 @@ public: css::uno::Reference< css::embed::XExtendedStorageStream > GetStreamHierarchically( sal_Int32 nStorageMode, - OStringList_Impl& aPath, + std::vector<OUString>& aPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData ); - void RemoveStreamHierarchically( OStringList_Impl& aListPath ); + void RemoveStreamHierarchically( std::vector<OUString>& aListPath ); // XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; @@ -102,15 +101,15 @@ public: , m_xChild( new OHierarchyElement_Impl( css::uno::WeakReference< css::embed::XStorage >( xOwnStorage ) ) ) {} - static OStringList_Impl GetListPathFromString( const OUString& aPath ); + static std::vector<OUString> GetListPathFromString( const OUString& aPath ); css::uno::Reference< css::embed::XExtendedStorageStream > GetStreamHierarchically( sal_Int32 nStorageMode, - OStringList_Impl& aListPath, + std::vector<OUString>& aListPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap& aEncryptionData = ::comphelper::SequenceAsHashMap() ); - void RemoveStreamHierarchically( OStringList_Impl& aListPath ); + void RemoveStreamHierarchically( std::vector<OUString>& aListPath ); }; #endif // _OHIERARCHYHOLDER diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 2796976ea872..ca646e10f41b 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -5431,7 +5431,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL OStorage::openStreamEle && ( nOpenMode & embed::ElementModes::WRITE ) ) throw io::IOException( THROW_WHERE ); // Access denied - OStringList_Impl aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); + std::vector<OUString> aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); OSL_ENSURE( aListPath.size(), "The result list must not be empty!" ); uno::Reference< embed::XExtendedStorageStream > xResult; @@ -5493,7 +5493,7 @@ void SAL_CALL OStorage::removeStreamElementByHierarchicalName( const OUString& a if ( !( m_pImpl->m_nStorageMode & embed::ElementModes::WRITE ) ) throw io::IOException( THROW_WHERE ); // Access denied - OStringList_Impl aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); + std::vector<OUString> aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); OSL_ENSURE( aListPath.size(), "The result list must not be empty!" ); if ( !m_pData->m_rHierarchyHolder.is() ) @@ -5527,7 +5527,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL OStorage::openEncrypted && ( nOpenMode & embed::ElementModes::WRITE ) ) throw io::IOException( THROW_WHERE ); // Access denied - OStringList_Impl aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); + std::vector<OUString> aListPath = OHierarchyHolder_Impl::GetListPathFromString( aStreamPath ); OSL_ENSURE( aListPath.size(), "The result list must not be empty!" ); uno::Reference< embed::XExtendedStorageStream > xResult; |