summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi/scenwnd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/navipi/scenwnd.cxx')
-rw-r--r--sc/source/ui/navipi/scenwnd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/scenwnd.cxx b/sc/source/ui/navipi/scenwnd.cxx
index 95adccac53ad..df63657f8e7d 100644
--- a/sc/source/ui/navipi/scenwnd.cxx
+++ b/sc/source/ui/navipi/scenwnd.cxx
@@ -256,7 +256,7 @@ void ScScenarioWindow::NotifyState( const SfxPoolItem* pState )
if ( auto pStringItem = dynamic_cast<const SfxStringItem*>( pState) )
{
- OUString aNewEntry( pStringItem->GetValue() );
+ const OUString& aNewEntry( pStringItem->GetValue() );
if ( !aNewEntry.isEmpty() )
aLbScenario->SelectEntry( aNewEntry );