[Libreoffice-commits] core.git: basic/source
Hieronymous
sudk1896 at gmail.com
Sun Oct 16 10:41:40 UTC 2016
basic/source/classes/sb.cxx | 2 +-
basic/source/inc/sbintern.hxx | 4 +---
basic/source/runtime/methods1.cxx | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 01dc6d098def20d6db57a13e8b2d79492a051fce
Author: Hieronymous <sudk1896 at gmail.com>
Date: Sun Oct 16 14:57:40 2016 +0530
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 at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 704169b..d541d44 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 55d6dd1..a0ebd19 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 836451d..ac2b13d 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;
More information about the Libreoffice-commits
mailing list