From 7fb43031b7eec663768f5a4e78e60da86379df41 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 Oct 2019 13:38:33 +0200 Subject: loplugin:constantparam Change-Id: Ibfe70492683ff3ec208cee95d8a11155ec54f690 Reviewed-on: https://gerrit.libreoffice.org/81314 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/control/opendoccontrols.cxx | 10 ++-------- dbaccess/source/ui/inc/opendoccontrols.hxx | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx b/dbaccess/source/ui/control/opendoccontrols.cxx index b94c4316a310..85bba326a054 100644 --- a/dbaccess/source/ui/control/opendoccontrols.cxx +++ b/dbaccess/source/ui/control/opendoccontrols.cxx @@ -186,15 +186,9 @@ namespace dbaui return sURL; } - OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( sal_uInt16 _nListIndex, bool _bSystemNotation ) const + OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( sal_uInt16 _nListIndex ) const { - StringPair aDocumentDescriptor = m_aURLs[_nListIndex]; - if ( _bSystemNotation && !aDocumentDescriptor.first.isEmpty() ) - { - ::svt::OFileNotation aNotation( aDocumentDescriptor.first ); - aDocumentDescriptor.first = aNotation.get( ::svt::OFileNotation::N_SYSTEM ); - } - return aDocumentDescriptor; + return m_aURLs[_nListIndex]; } } // namespace dbaui diff --git a/dbaccess/source/ui/inc/opendoccontrols.hxx b/dbaccess/source/ui/inc/opendoccontrols.hxx index 56e80a5ca2d3..2e6bd573de22 100644 --- a/dbaccess/source/ui/inc/opendoccontrols.hxx +++ b/dbaccess/source/ui/inc/opendoccontrols.hxx @@ -73,7 +73,7 @@ namespace dbaui void connect_changed(const Link& rLink) { m_xControl->connect_changed(rLink); } private: - StringPair impl_getDocumentAtIndex( sal_uInt16 _nListIndex, bool _bSystemNotation = false ) const; + StringPair impl_getDocumentAtIndex( sal_uInt16 _nListIndex ) const; void impl_init( const sal_Char* _pAsciiModuleName ); }; -- cgit