summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/layerexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/forms/layerexport.cxx')
-rw-r--r--xmloff/source/forms/layerexport.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx
index b0f0048b98e5..068200dccad8 100644
--- a/xmloff/source/forms/layerexport.cxx
+++ b/xmloff/source/forms/layerexport.cxx
@@ -474,8 +474,7 @@ namespace xmloff
OUString lcl_findFreeControlId( const MapPropertySet2Map& _rAllPagesControlIds )
{
- static const char sControlIdBase[] = "control";
- OUString sControlId = sControlIdBase;
+ OUString sControlId = "control";
size_t nKnownControlCount = ::std::accumulate( _rAllPagesControlIds.begin(), _rAllPagesControlIds.end(), (size_t)0, AccumulateSize() );
sControlId += OUString::number( (sal_Int32)nKnownControlCount + 1 );