diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 15:26:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-24 11:57:16 +0200 |
commit | 77b72be9548f6e4d06ce8545fafa8a5d47d3e5d2 (patch) | |
tree | 13b95b913e46a7637611bc150558d3ceefd3e394 /sd/source/ui/view/frmview.cxx | |
parent | eb6f62496d7f0c8c477dc17bbcc00d0bfa3ae50b (diff) |
reserve vector in FrameView::WriteUserDataSequence
Change-Id: Ia66fd26d9697467c58b2d17a0e511604795a4316
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134836
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/frmview.cxx')
-rw-r--r-- | sd/source/ui/view/frmview.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index 7518ba798b32..fad0dc9ad9ea 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -377,6 +377,7 @@ static OUString createHelpLinesString( const SdrHelpLineList& rHelpLines ) void FrameView::WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& rValues ) { std::vector< std::pair< OUString, Any > > aUserData; + aUserData.reserve(41); // worst case aUserData.emplace_back( sUNO_View_GridIsVisible, Any( IsGridVisible() ) ); aUserData.emplace_back( sUNO_View_GridIsFront, Any( IsGridFront() ) ); |