diff options
author | Hieronymous <sudk1896@gmail.com> | 2016-10-16 14:57:40 +0530 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-16 10:41:20 +0000 |
commit | 01dc6d098def20d6db57a13e8b2d79492a051fce (patch) | |
tree | c94279b155c30c1307a0c7712acea4f95441acfd | |
parent | 970a66f8c919ea0524f216f40d21b3e2a8c88ccc (diff) |
tdf#96099 Reduce no. of useless typedefs for trivial containers.
Reduced vector< OUString > typedefs in sbintern module.
Change-Id: I5b2fd6f0b5fe0ae538a12ac028a08458c6eb4714
Reviewed-on: https://gerrit.libreoffice.org/29916
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | basic/source/classes/sb.cxx | 2 | ||||
-rw-r--r-- | basic/source/inc/sbintern.hxx | 4 | ||||
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 704169bac8b8..d541d448df3b 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1163,7 +1163,7 @@ void SbModule::implProcessModuleRunInit( ModuleInitDependencyMap& rMap, ClassMod SbModule* pModule = rItem.m_pModule; if( pModule->pClassData != nullptr ) { - StringVector& rReqTypes = pModule->pClassData->maRequiredTypes; + std::vector< OUString >& rReqTypes = pModule->pClassData->maRequiredTypes; if( rReqTypes.size() > 0 ) { for( const auto& rStr : rReqTypes ) diff --git a/basic/source/inc/sbintern.hxx b/basic/source/inc/sbintern.hxx index 55d6dd1af5ca..a0ebd19a6c33 100644 --- a/basic/source/inc/sbintern.hxx +++ b/basic/source/inc/sbintern.hxx @@ -43,15 +43,13 @@ public: virtual SbxObject* CreateObject( const OUString& ) override; }; -typedef ::std::vector< OUString > StringVector; - struct SbClassData { SbxArrayRef mxIfaces; // types this module depends on because of use in Dim As New <type> // needed for initialization order of class modules - StringVector maRequiredTypes; + std::vector< OUString > maRequiredTypes; SbClassData(); ~SbClassData() diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 836451d81bc0..ac2b13ddefa6 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -1757,7 +1757,7 @@ RTLFUNC(Split) OUString aExpression = rPar.Get(1)->GetOUString(); short nArraySize = 0; - StringVector vRet; + std::vector< OUString > vRet; if( !aExpression.isEmpty() ) { OUString aDelim; |