diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 19:11:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-26 09:17:47 +0200 |
commit | 2dbe6a2d57956be392966c363d03f54cb68dd4fa (patch) | |
tree | 148065e98b7470331edaa83b95c85eae6e179ed2 /sfx2/source/dialog/filedlghelper.cxx | |
parent | d416a5ff59b31dd7250d392278c43f66cdb81e35 (diff) |
loplugin:oncevar in sfx2
Change-Id: I9aadcb9a12ef9b0c3f93ea255f2542e51d31fbf7
Reviewed-on: https://gerrit.libreoffice.org/39242
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/filedlghelper.cxx')
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 ); |