summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 08:40:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 11:06:26 +0200
commit612b489d3e05b24c1b6690082e8518bac033e9d2 (patch)
tree23a6c556989071385d1c64730ed72bdbae7c239c /svtools
parent17e14d459dea201b57be2d8e677fa776ead03291 (diff)
loplugin:checkunusedparams
the "check for taking address of function" part was generating false+ Change-Id: Iad6203850901229b7b1b2f8938c68ec703cd343f Reviewed-on: https://gerrit.libreoffice.org/40613 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
-rw-r--r--svtools/source/brwbox/brwbox2.cxx10
-rw-r--r--svtools/source/svhtml/htmlout.cxx5
3 files changed, 3 insertions, 14 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index f8b5875d407c..fe7d5a8d58e2 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -529,7 +529,6 @@ void BrowseBox::SetColumnWidth( sal_uInt16 nItemId, sal_uLong nWidth )
return;
// does the state change?
- nWidth = QueryColumnResize( nItemId, nWidth );
if ( nWidth >= LONG_MAX || pCols[ nItemPos ]->Width() != nWidth )
{
long nOldWidth = pCols[ nItemPos ]->Width();
@@ -544,7 +543,6 @@ void BrowseBox::SetColumnWidth( sal_uInt16 nItemId, sal_uLong nWidth )
if ( pDataWin->bAutoSizeLastCol || nWidth > (sal_uLong)nMaxWidth )
{
nWidth = nMaxWidth > 16 ? nMaxWidth : nOldWidth;
- nWidth = QueryColumnResize( nItemId, nWidth );
}
}
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index ee823e22ba60..c73f3695838f 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -197,12 +197,6 @@ void BrowseBox::RowHeightChanged()
}
-long BrowseBox::QueryColumnResize( sal_uInt16, long nWidth )
-{
- return nWidth;
-}
-
-
void BrowseBox::ColumnResized( sal_uInt16 )
{
}
@@ -1403,9 +1397,7 @@ void BrowseBox::MouseMove( const MouseEvent& rEvt )
long nDeltaX = nDragX - nResizeX;
sal_uInt16 nId = GetColumnId(nResizeCol);
sal_uLong nOldWidth = GetColumnWidth(nId);
- nDragX = QueryColumnResize( GetColumnId(nResizeCol),
- nOldWidth + nDeltaX )
- + nResizeX - nOldWidth;
+ nDragX = nOldWidth + nDeltaX + nResizeX - nOldWidth;
// draw new auxiliary line
pDataWin->ShowTracking( tools::Rectangle( Point( nDragX, 0 ),
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx
index f3993cba8dbe..db854631655e 100644
--- a/svtools/source/svhtml/htmlout.cxx
+++ b/svtools/source/svhtml/htmlout.cxx
@@ -514,7 +514,7 @@ OString HTMLOutFuncs::ConvertStringToHTML( const OUString& rSrc,
}
SvStream& HTMLOutFuncs::Out_AsciiTag( SvStream& rStream, const sal_Char *pStr,
- bool bOn, rtl_TextEncoding )
+ bool bOn )
{
if(bOn)
rStream.WriteCharPtr("<");
@@ -559,8 +559,7 @@ SvStream& HTMLOutFuncs::FlushToAscii( SvStream& rStream,
return rStream;
}
-SvStream& HTMLOutFuncs::Out_Hex( SvStream& rStream, sal_uLong nHex, sal_uInt8 nLen,
- rtl_TextEncoding )
+SvStream& HTMLOutFuncs::Out_Hex( SvStream& rStream, sal_uLong nHex, sal_uInt8 nLen )
{ // in einen Stream aus
sal_Char aNToABuf[] = "0000000000000000";