summaryrefslogtreecommitdiff
path: root/vcl/inc/sallayout.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-03-04 19:30:04 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-03-04 21:12:48 -0600
commit2ea4964b2e81a25125eec7ce3eb0b06b3883edf0 (patch)
tree92bba31d500bbd117ffc50264c90e78539125081 /vcl/inc/sallayout.hxx
parent6bb68cae7c31918eff8386d5b52be0759386bb60 (diff)
help GlyphItems vector to be sized correctly up-front
Diffstat (limited to 'vcl/inc/sallayout.hxx')
-rw-r--r--vcl/inc/sallayout.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index a9a30d03f7e8..85c04f0f2fd0 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -345,6 +345,7 @@ class VCL_PLUGIN_PUBLIC GenericSalLayout : public SalLayout
public:
// used by layout engines
void AppendGlyph( const GlyphItem& );
+ void Reserve(int size) { m_GlyphItems.reserve(size + 1); }
virtual void AdjustLayout( ImplLayoutArgs& );
virtual void ApplyDXArray( ImplLayoutArgs& );
virtual void Justify( long nNewWidth );