summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index fd8d002bdccc..3e09946ed16f 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -150,8 +150,7 @@ XubString Button::GetStandardText( StandardButtonType eButton )
if( pResMgr )
{
sal_uInt32 nResId = aResIdAry[(sal_uInt16)eButton].nResId;
- ResId aResId( nResId, *pResMgr );
- aText = String( aResId );
+ aText = ResId(nResId, *pResMgr).toString();
// Windows (apparently) has some magic auto-accelerator evil around
// ok / cancel so add this only for Unix