summaryrefslogtreecommitdiff
path: root/svtools/source/uno/wizard
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:11:20 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 15:49:34 +0100
commitd4b63c4562ec4c612df675502fd35c7c88bc432d (patch)
tree3c183240ad085c33ae46f6686a4ab50adbf2c39a /svtools/source/uno/wizard
parent1a5ddf061ef53fb9feda0ee319fa36cadef020da (diff)
Prepare for removal of non-const operator[] from Sequence in svtools
Change-Id: I614a97e5e2328c787ce19612a88839e234d54382 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124396 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svtools/source/uno/wizard')
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index ea028304737a..9c503d37e114 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -226,8 +226,7 @@ namespace {
if ( !aMultiplePaths.hasElements() )
{
- aMultiplePaths.realloc(1);
- aMultiplePaths[0] = aSinglePath;
+ aMultiplePaths = { aSinglePath };
}
lcl_checkPaths( aMultiplePaths, *this );
// if we survived this, the paths are valid, and we're done here ...