Kaydet (Commit) e2eae56b authored tarafından Michael Stahl's avatar Michael Stahl

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
üst e564f58b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment