diff options
Diffstat (limited to 'unotools/source/config/dynamicmenuoptions.cxx')
-rw-r--r-- | unotools/source/config/dynamicmenuoptions.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx index 38138797f149..8598eb494624 100644 --- a/unotools/source/config/dynamicmenuoptions.cxx +++ b/unotools/source/config/dynamicmenuoptions.cxx @@ -314,6 +314,7 @@ static void lcl_SortAndExpandPropertyNames( const Sequence< OUString >& lSource sal_Int32 nDestinationStep = lDestination.getLength(); // start on end of current list ...! lDestination.realloc( (nSourceCount*PROPERTYCOUNT)+nDestinationStep ); // get enough memory for copy operations after nDestination ... + auto plDestination = lDestination.getArray(); // Copy all items to temp. vector to use fast sort operations :-) lTemp.insert( lTemp.end(), lSource.begin(), lSource.end() ); @@ -328,10 +329,10 @@ static void lcl_SortAndExpandPropertyNames( const Sequence< OUString >& lSource for( const auto& rItem : lTemp ) { OUString sFixPath(OUString::Concat(sSetNode) + PATHDELIMITER + rItem + PATHDELIMITER); - lDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_URL; - lDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_TITLE; - lDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_IMAGEIDENTIFIER; - lDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_TARGETNAME; + plDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_URL; + plDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_TITLE; + plDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_IMAGEIDENTIFIER; + plDestination[nDestinationStep++] = sFixPath + PROPERTYNAME_TARGETNAME; } } |