summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-21 13:38:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-22 14:14:48 +0200
commit7fb43031b7eec663768f5a4e78e60da86379df41 (patch)
tree026dd9b5a522aec8534763af074fc4a28ccfa58d /dbaccess
parent61ea11e51ceeaec7bf197a076cf40d96bd65ad07 (diff)
loplugin:constantparam
Change-Id: Ibfe70492683ff3ec208cee95d8a11155ec54f690 Reviewed-on: https://gerrit.libreoffice.org/81314 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/opendoccontrols.cxx10
-rw-r--r--dbaccess/source/ui/inc/opendoccontrols.hxx2
2 files changed, 3 insertions, 9 deletions
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<weld::ComboBox&, void>& 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 );
};