https://bugs.freedesktop.org/show_bug.cgi?id=45678

--- Comment #1 from Szabolcs Dézsi <[email protected]> 2012-03-02 07:37:09 
PST ---
Created attachment 57921
  --> https://bugs.freedesktop.org/attachment.cgi?id=57921
Removed every use of LinkedList and replaced it with std::list

Hi!

I removed every use of LinkedList and replaced it with std::list
I hope everything's correct. Tested it with the .hwp file in
hwpfilter/qa/cppunit/data (pass and fail). Working as expected.

LinkedList had a find(int n) method, which returned the underlying
std::vector's nth element, unfortunately this isn't possible with std::list, so
the calls to find(...) and replaced with iterating with a for loop i times,
thus pointing the iterator to the nth element of the list.

Don't know if it's a very good solution though. The original find method had an
assertion that the parameter is between 0 and the size of the underlying
vector.

If something is wrong, let me know, and i try to enhance/work on it. Or feel
free to improve it :)

Szabolcs

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to