diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-20 00:38:37 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-20 00:56:08 +0100 |
commit | e2eae56bd31a1f39d5ba76ee1bf350d0059ce7cd (patch) | |
tree | bd6cd652dc503d8b8a53bf7893b4c322ed514c76 /sal | |
parent | e564f58b789139c7609facd0bea88f0b651b5153 (diff) |
sal: replace a list with vector
std::stable_sort requires random access iterators, which std::list does
not provide, so this is not actually supposed to work, but strangely
does. But there's no reason why this couldn't be a vector.
Change-Id: I98ec5c28204d01a7352d15ed783748fc17bd8105
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/procimpl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx index c0d5673faf38..f7b66cabd498 100644 --- a/sal/osl/w32/procimpl.cxx +++ b/sal/osl/w32/procimpl.cxx @@ -38,7 +38,6 @@ #include "secimpl.h" #include <osl/file.hxx> -#include <list> #include <vector> #include <algorithm> #include <string> @@ -53,7 +52,7 @@ const rtl::OUString QUOTE("\""); namespace /* private */ { - typedef std::list<rtl::OUString> string_container_t; + typedef std::vector<rtl::OUString> string_container_t; typedef string_container_t::iterator string_container_iterator_t; typedef string_container_t::const_iterator string_container_const_iterator_t; typedef std::pair<string_container_iterator_t, string_container_iterator_t> iterator_pair_t; |