summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-20 16:36:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-21 07:18:38 +0000
commit90d892664a6c49a8ae25a72ddccf54dba9d0e429 (patch)
treed9bb4a7307e349b88a4d528854abb44e4323f563 /svtools
parenttdf#74608 lotuswordpro: Constructor feature for LotusWordProImportFilter (diff)
downloadcore-90d892664a6c49a8ae25a72ddccf54dba9d0e429.tar.gz
core-90d892664a6c49a8ae25a72ddccf54dba9d0e429.zip
loplugin: unused return values
Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx6
-rw-r--r--svtools/source/inc/svimpbox.hxx2
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx8
3 files changed, 7 insertions, 9 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index fbe6a3266706..146a0230e93a 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -1181,12 +1181,11 @@ void SvImpLBox::PositionScrollBars( Size& rSize, sal_uInt16 nMask )
aScrBarBox->Hide();
}
-// nResult: Bit0 == VerSBar Bit1 == HorSBar
-sal_uInt16 SvImpLBox::AdjustScrollBars( Size& rSize )
+void SvImpLBox::AdjustScrollBars( Size& rSize )
{
long nEntryHeight = pView->GetEntryHeight();
if( !nEntryHeight )
- return 0;
+ return;
sal_uInt16 nResult = 0;
@@ -1303,7 +1302,6 @@ sal_uInt16 SvImpLBox::AdjustScrollBars( Size& rSize )
aHorSBar->Hide();
}
rSize = aOSize;
- return nResult;
}
void SvImpLBox::InitScrollBarBox()
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index 835c2397dad3..c93cd2f51b3a 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -201,7 +201,7 @@ private:
bool ButtonDownCheckExpand( const MouseEvent&, SvTreeListEntry*,long nY );
void PositionScrollBars( Size& rOSize, sal_uInt16 nMask );
- sal_uInt16 AdjustScrollBars( Size& rSize );
+ void AdjustScrollBars( Size& rSize );
void BeginScroll();
void EndScroll();
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 7cfe29d7401f..c74af2eaec94 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -89,7 +89,7 @@ public:
virtual ~UnoTreeListBoxImpl();
virtual void dispose() override;
- sal_uInt32 insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,sal_uLong nPos=TREELIST_APPEND );
+ void insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,sal_uLong nPos=TREELIST_APPEND );
virtual void RequestingChildren( SvTreeListEntry* pParent ) override;
@@ -1535,12 +1535,12 @@ IMPL_LINK_NOARG_TYPED(UnoTreeListBoxImpl, OnExpandedHdl, SvTreeListBox*, void)
-sal_uInt32 UnoTreeListBoxImpl::insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,sal_uLong nPos )
+void UnoTreeListBoxImpl::insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,sal_uLong nPos )
{
if( pParent )
- return SvTreeListBox::Insert( pEntry, pParent, nPos );
+ SvTreeListBox::Insert( pEntry, pParent, nPos );
else
- return SvTreeListBox::Insert( pEntry, nPos );
+ SvTreeListBox::Insert( pEntry, nPos );
}