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
This commit is contained in:
Michael Stahl
2015-12-20 00:38:37 +01:00
parent e564f58b78
commit e2eae56bd3

View File

@@ -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;