diff options
Diffstat (limited to 'oox/source/ole/vbacontrol.cxx')
-rw-r--r-- | oox/source/ole/vbacontrol.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx index ada01ab5f022..6a6de0cbfe52 100644 --- a/oox/source/ole/vbacontrol.cxx +++ b/oox/source/ole/vbacontrol.cxx @@ -98,12 +98,12 @@ public: private: ::std::set< OUString > maCtrlNames; - const OUString maDummyBaseName; sal_Int32 mnIndex; }; +static const OUStringLiteral gaDummyBaseName( "DummyGroupSep" ); + VbaControlNamesSet::VbaControlNamesSet() : - maDummyBaseName( "DummyGroupSep" ), mnIndex( 0 ) { } @@ -120,7 +120,7 @@ OUString VbaControlNamesSet::generateDummyName() OUString aCtrlName; do { - aCtrlName = maDummyBaseName + OUString::number( ++mnIndex ); + aCtrlName = gaDummyBaseName + OUString::number( ++mnIndex ); } while( maCtrlNames.count( aCtrlName ) > 0 ); maCtrlNames.insert( aCtrlName ); |