diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-27 22:41:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-28 13:08:54 +0100 |
commit | 2f36279079e74e40a3fa2de5821c879e98d498e3 (patch) | |
tree | 2d574a12fa96217d5241514579303ae640ce222f /sw | |
parent | 1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4 (diff) |
use a vector instead of a deque when deque extras unneeded, they're faster
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index beb44dd54a3e..bac034e7a69d 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -122,7 +122,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/color/bcolortools.hxx> -#include <deque> +#include <vector> #include <algorithm> #include <wrtsh.hxx> #include <edtwin.hxx> @@ -189,7 +189,7 @@ public: sal_Bool MakeUnion( const SwRect &rRect ); }; -class SwLineRects : public std::deque< SwLineRect > +class SwLineRects : public std::vector< SwLineRect > { size_t nLastCount; //avoid unnecessary cycles in PaintLines public: |