diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-03 11:31:14 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-06 07:04:50 +0000 |
commit | e9c3583c2cc27fc88ee81047c236ec99dd51e8de (patch) | |
tree | b3e8394ca1ec402a31b227339366fc790124c1f8 /include | |
parent | 89c77994d4638c86635c70535fab6508e2f3d900 (diff) |
improve the returnbyref loplugin
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb
Reviewed-on: https://gerrit.libreoffice.org/16731
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/treelistentry.hxx | 4 | ||||
-rw-r--r-- | include/svtools/viewdataentry.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/svtools/treelistentry.hxx b/include/svtools/treelistentry.hxx index 6ffd1d45fa34..530dab1b8deb 100644 --- a/include/svtools/treelistentry.hxx +++ b/include/svtools/treelistentry.hxx @@ -93,8 +93,8 @@ public: // FOR THE ITEM! void AddItem( SvLBoxItem* pItem ); void ReplaceItem( SvLBoxItem* pNewItem, size_t nPos ); - const SvLBoxItem* GetItem( size_t nPos ) const; - SvLBoxItem* GetItem( size_t nPos ); + const SvLBoxItem& GetItem( size_t nPos ) const; + SvLBoxItem& GetItem( size_t nPos ); const SvLBoxItem* GetFirstItem( sal_uInt16 nId ) const; SvLBoxItem* GetFirstItem( sal_uInt16 nId ); size_t GetPos( const SvLBoxItem* pItem ) const; diff --git a/include/svtools/viewdataentry.hxx b/include/svtools/viewdataentry.hxx index 8d39022b16ad..18c4fe16d1b4 100644 --- a/include/svtools/viewdataentry.hxx +++ b/include/svtools/viewdataentry.hxx @@ -73,8 +73,8 @@ public: void Init(size_t nSize); - const SvViewDataItem* GetItem(size_t nPos) const; - SvViewDataItem* GetItem(size_t nPos); + const SvViewDataItem& GetItem(size_t nPos) const; + SvViewDataItem& GetItem(size_t nPos); void SetPaintRectangle(Rectangle aRectangle); Rectangle GetPaintRectangle() const; |