summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-05-03 23:02:16 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-05-04 09:01:12 +0200
commit5ed998cb2f6f7965f51c3d091048f83d454a5c5a (patch)
tree319dc368c5fb624854dd90520e4f3fcaef777ac6 /extensions/source/propctrlr
parent1cff5c9db7e0d7cf7ae45b306deb963d95926d99 (diff)
extensions: reserve the right nb of elements for vectors
Change-Id: Ie89edc6be31f6c0349075a7ee190383814f57daf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151343 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'extensions/source/propctrlr')
-rw-r--r--extensions/source/propctrlr/eformspropertyhandler.cxx2
-rw-r--r--extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index c907e0b0c861..93643dcaa4a3 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -281,7 +281,7 @@ namespace pcr
{
if ( m_pHelper->canBindToAnyDataType() )
{
- aProperties.reserve( 7 );
+ aProperties.reserve( 8 );
addStringPropertyDescription( aProperties, PROPERTY_XML_DATA_MODEL );
addStringPropertyDescription( aProperties, PROPERTY_BINDING_NAME );
addStringPropertyDescription( aProperties, PROPERTY_BIND_EXPRESSION );
diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
index 1f8351cdbcc5..7a3360423651 100644
--- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
+++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
@@ -171,7 +171,7 @@ namespace pcr
if ( bAllowBinding )
{
- aProperties.reserve( 12 );
+ aProperties.reserve( 28 );
addStringPropertyDescription( aProperties, PROPERTY_XSD_DATA_TYPE );
addInt16PropertyDescription ( aProperties, PROPERTY_XSD_WHITESPACES );