summaryrefslogtreecommitdiff
path: root/connectivity/workben
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-08-31 21:42:24 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-08-31 22:31:32 +0200
commit4c99b8a9de59f3c5280ff2944d9f828822897f4a (patch)
tree3753d944ff63dc74689b60c92a9c0df6df4e3650 /connectivity/workben
parent1007e74d0564c393f88edd4df003e4c9a4524dae (diff)
Replace some lists by vectors (+rename vars)
Change-Id: Iad4e3cc13f7908840ef45a04ea4b551d3b0fc487 Reviewed-on: https://gerrit.libreoffice.org/41771 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity/workben')
-rw-r--r--connectivity/workben/iniParser/main.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/workben/iniParser/main.cxx b/connectivity/workben/iniParser/main.cxx
index dacc8bae337e..2667d957e605 100644
--- a/connectivity/workben/iniParser/main.cxx
+++ b/connectivity/workben/iniParser/main.cxx
@@ -22,7 +22,7 @@
#include <osl/process.h>
#include <map>
-#include <list>
+#include <vector>
struct ini_NameValue
@@ -39,14 +39,14 @@ struct ini_NameValue
{}
};
-typedef std::list<
+typedef std::vector<
ini_NameValue
-> NameValueList;
+> NameValueVector;
struct ini_Section
{
OUString sName;
- NameValueList lList;
+ NameValueVector vVector;
};
typedef std::map<OUString,
ini_Section
@@ -100,7 +100,7 @@ public:
nameValue.sValue = OStringToOUString(
line.copy(nIndex+1).trim(), RTL_TEXTENCODING_UTF8 );
- aSection->lList.push_back(nameValue);
+ aSection->vVector.push_back(nameValue);
}
else
@@ -137,8 +137,8 @@ public:
for(;iBegin != iEnd;iBegin++)
{
ini_Section *aSection = &(*iBegin).second;
- for(NameValueList::iterator itor=aSection->lList.begin();
- itor != aSection->lList.end();
+ for(NameValueVector::iterator itor=aSection->vVector.begin();
+ itor != aSection->vVector.end();
itor++)
{
struct ini_NameValue * aValue = &(*itor);