summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mozab
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/source/drivers/mozab
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/source/drivers/mozab')
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx2
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx8
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx
index ebd6ac016c68..178a2f794636 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.cxx
@@ -63,7 +63,7 @@ IniParser::IniParser(OUString const & rIniName)
nameValue.sValue = OStringToOUString(
line.copy(nIndex+1).trim(), RTL_TEXTENCODING_UTF8 );
- aSection->lList.push_back(nameValue);
+ aSection->vVector.push_back(nameValue);
}
else
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
index 120f47121915..95ca6d748cf5 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
@@ -24,7 +24,7 @@
#include <osl/process.h>
#include <map>
-#include <list>
+#include <vector>
struct ini_NameValue
{
@@ -32,14 +32,14 @@ struct ini_NameValue
OUString sValue;
};
-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
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
index f3e80833b6f5..ac0cca926bbb 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
@@ -85,8 +85,8 @@ namespace connectivity
OUString sIsRelative;
OUString sIsDefault;
- 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);