From 2dbe6a2d57956be392966c363d03f54cb68dd4fa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 25 Jun 2017 19:11:12 +0200 Subject: loplugin:oncevar in sfx2 Change-Id: I9aadcb9a12ef9b0c3f93ea255f2542e51d31fbf7 Reviewed-on: https://gerrit.libreoffice.org/39242 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sfx2/source/dialog/filedlghelper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2/source/dialog/filedlghelper.cxx') diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index acb10f0d2c56..14140b6b8b51 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -453,14 +453,13 @@ void FileDialogHelper_Impl::updateExportButton() uno::Reference < XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY ); if ( xCtrlAccess.is() ) { - OUString sEllipses( "..." ); OUString sOldLabel( xCtrlAccess->getLabel( CommonFilePickerElementIds::PUSHBUTTON_OK ) ); // initialize button label; we need the label with the mnemonic char if ( maButtonLabel.isEmpty() || maButtonLabel.indexOf( MNEMONIC_CHAR ) == -1 ) { // cut the ellipses, if necessary - sal_Int32 nIndex = sOldLabel.indexOf( sEllipses ); + sal_Int32 nIndex = sOldLabel.indexOf( "..." ); if ( -1 == nIndex ) nIndex = sOldLabel.getLength(); maButtonLabel = sOldLabel.copy( 0, nIndex ); -- cgit