summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-27 22:41:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-03-28 13:08:54 +0100
commit2f36279079e74e40a3fa2de5821c879e98d498e3 (patch)
tree2d574a12fa96217d5241514579303ae640ce222f /sw
parent1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4 (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.cxx4
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: