[Libreoffice-commits] core.git: basic/source
Julien Nabet
serval2412 at yahoo.fr
Fri Sep 1 17:51:29 UTC 2017
basic/source/runtime/dllmgr-x64.cxx | 7 +++----
basic/source/runtime/dllmgr-x86.cxx | 7 +++----
2 files changed, 6 insertions(+), 8 deletions(-)
New commits:
commit c497c4ca4d7068fb9bdd965bbace7d5216f8fd59
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Sep 1 18:55:36 2017 +0200
Replace list by vector in dllmgr-x86-x64 (basic)
Change-Id: I169590700474100e88f2e287f205ce7cbadedabe
Reviewed-on: https://gerrit.libreoffice.org/41797
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
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) {
More information about the Libreoffice-commits
mailing list