diff options
Diffstat (limited to 'comphelper/source/container')
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 8207e5aae710..1e62e8368416 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -218,8 +218,7 @@ OUString EmbeddedObjectContainer::CreateUniqueObjectName() sal_Int32 i=1; do { - aStr = aPersistName; - aStr += OUString::number( i++ ); + aStr = aPersistName + OUString::number( i++ ); } while( HasEmbeddedObject( aStr ) ); // TODO/LATER: should we consider deleted objects? |