summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-14 10:20:52 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 10:24:47 +0200
commitb8eb2946511ce617323b13dffe2b1d9704e0be60 (patch)
treed5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /fpicker
parentd8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff)
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx4
-rw-r--r--fpicker/source/office/PlacesListBox.hxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index b3618075e881..8f531d0c01d5 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -70,8 +70,8 @@ public:
FilterEntry( const OUString& _rTitle, const UnoFilterList& _rSubFilters );
- OUString getTitle() const { return m_sTitle; }
- OUString getFilter() const { return m_sFilter; }
+ const OUString& getTitle() const { return m_sTitle; }
+ const OUString& getFilter() const { return m_sFilter; }
/// determines if the filter has sub filter (i.e., the filter is a filter group in real)
bool hasSubFilters( ) const;
diff --git a/fpicker/source/office/PlacesListBox.hxx b/fpicker/source/office/PlacesListBox.hxx
index e7a9a7ac80cf..5f4f21eb69b8 100644
--- a/fpicker/source/office/PlacesListBox.hxx
+++ b/fpicker/source/office/PlacesListBox.hxx
@@ -66,9 +66,9 @@ class PlacesListBox : public Control
void SetSizePixel( const Size& rNewSize ) override;
void updateView( );
- VclPtr<PushButton> GetAddButton() const { return mpAddBtn; }
- VclPtr<PushButton> GetDeleteButton() const { return mpDelBtn; }
- VclPtr<PlacesListBox_Impl> GetPlacesListBox() const { return mpImpl; }
+ const VclPtr<PushButton>& GetAddButton() const { return mpAddBtn; }
+ const VclPtr<PushButton>& GetDeleteButton() const { return mpDelBtn; }
+ const VclPtr<PlacesListBox_Impl>& GetPlacesListBox() const { return mpImpl; }
virtual bool Notify( NotifyEvent& rNEvt ) override;