summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-09-01 18:55:36 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-09-01 19:51:07 +0200
commitc497c4ca4d7068fb9bdd965bbace7d5216f8fd59 (patch)
tree3521af13aea18862de91e206452e4834dd86a141 /basic
parent5c0ab63e7d131977d2a66913ab8070ddaf0db1a0 (diff)
Replace list by vector in dllmgr-x86-x64 (basic)
Change-Id: I169590700474100e88f2e287f205ce7cbadedabe Reviewed-on: https://gerrit.libreoffice.org/41797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/dllmgr-x64.cxx7
-rw-r--r--basic/source/runtime/dllmgr-x86.cxx7
2 files changed, 6 insertions, 8 deletions
diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx
index fbd2d4948a32..a0902dad034c 100644
--- a/basic/source/runtime/dllmgr-x64.cxx
+++ b/basic/source/runtime/dllmgr-x64.cxx
@@ -26,7 +26,6 @@
#include <algorithm>
#include <cstddef>
-#include <list>
#include <map>
#include <vector>
@@ -108,8 +107,8 @@ public:
const MarshalData& operator=(const MarshalData&) = delete;
std::vector< char > * newBlob() {
- blobs_.push_front(std::vector< char >());
- return &blobs_.front();
+ blobs_.push_back(std::vector< char >());
+ return &blobs_.back();
}
std::vector< UnmarshalData > unmarshal;
@@ -117,7 +116,7 @@ public:
std::vector< StringData > unmarshalStrings;
private:
- std::list< std::vector< char > > blobs_;
+ std::vector< std::vector< char > > blobs_;
};
std::size_t align(std::size_t address, std::size_t alignment) {
diff --git a/basic/source/runtime/dllmgr-x86.cxx b/basic/source/runtime/dllmgr-x86.cxx
index 2f3203e72751..5f752dfced93 100644
--- a/basic/source/runtime/dllmgr-x86.cxx
+++ b/basic/source/runtime/dllmgr-x86.cxx
@@ -26,7 +26,6 @@
#include <algorithm>
#include <cstddef>
-#include <list>
#include <map>
#include <vector>
@@ -116,8 +115,8 @@ public:
const MarshalData& operator=(const MarshalData&) = delete;
std::vector< char > * newBlob() {
- blobs_.push_front(std::vector< char >());
- return &blobs_.front();
+ blobs_.push_back(std::vector< char >());
+ return &blobs_.back();
}
std::vector< UnmarshalData > unmarshal;
@@ -125,7 +124,7 @@ public:
std::vector< StringData > unmarshalStrings;
private:
- std::list< std::vector< char > > blobs_;
+ std::vector< std::vector< char > > blobs_;
};
std::size_t align(std::size_t address, std::size_t alignment) {