summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-03 09:36:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-03 10:29:57 +0200
commit101a9b4a3fcf1fd0a7163dac3a5dcd69431f4fee (patch)
tree29039a491e9ca058bd3ea9114bf8889ce8089ebc /include
parent55220e7bc6576a7575c675ba425e757a3aefa243 (diff)
loplugin:constantparam
Change-Id: I9cdd15185cfa8347a08402da956eab7cbdd63de6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91609 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/treelist.hxx4
-rw-r--r--include/vcl/treelistbox.hxx2
-rw-r--r--include/xmloff/xmltkmap.hxx6
3 files changed, 5 insertions, 7 deletions
diff --git a/include/vcl/treelist.hxx b/include/vcl/treelist.hxx
index a6cdbe0aa60e..85aba58f8818 100644
--- a/include/vcl/treelist.hxx
+++ b/include/vcl/treelist.hxx
@@ -236,8 +236,8 @@ public:
SvTreeListEntry* FirstVisible() const
{ return pModel->FirstVisible(); }
- SvTreeListEntry* NextVisible( SvTreeListEntry* pEntry, sal_uInt16* pDepth=nullptr ) const
- { return pModel->NextVisible(this,pEntry,pDepth); }
+ SvTreeListEntry* NextVisible( SvTreeListEntry* pEntry ) const
+ { return pModel->NextVisible(this,pEntry); }
SvTreeListEntry* PrevVisible( SvTreeListEntry* pEntry ) const
{ return pModel->PrevVisible(this,pEntry); }
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index af2c5c648735..179f27fe4cb6 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -674,7 +674,7 @@ public:
virtual bool Collapse( SvTreeListEntry* pParent );
virtual bool Select( SvTreeListEntry* pEntry, bool bSelect=true );
sal_uLong SelectChildren( SvTreeListEntry* pParent, bool bSelect );
- void SelectAll( bool bSelect, bool bPaint = true );
+ void SelectAll( bool bSelect );
void SetCurEntry( SvTreeListEntry* _pEntry );
SvTreeListEntry* GetCurEntry() const;
diff --git a/include/xmloff/xmltkmap.hxx b/include/xmloff/xmltkmap.hxx
index 0449a27d184e..f915dd1108a9 100644
--- a/include/xmloff/xmltkmap.hxx
+++ b/include/xmloff/xmltkmap.hxx
@@ -30,7 +30,7 @@
class SvXMLTokenMap_Impl;
#define XML_TOK_UNKNOWN 0xffffU
-#define XML_TOKEN_MAP_END { 0xffffU, xmloff::token::XML_TOKEN_INVALID, 0U, 0 }
+#define XML_TOKEN_MAP_END { 0xffffU, xmloff::token::XML_TOKEN_INVALID, 0U }
struct SvXMLTokenMapEntry
{
@@ -40,14 +40,12 @@ struct SvXMLTokenMapEntry
sal_uInt16 nToken;
SvXMLTokenMapEntry( sal_uInt16 nPrefix, xmloff::token::XMLTokenEnum eName,
- sal_uInt16 nTok, sal_Int32 nFastTok = 0 ) :
+ sal_uInt16 nTok ) :
eLocalName( eName ),
nFastToken( sal_uInt32( nPrefix + 1 ) << 16 | eLocalName ),
nPrefixKey( nPrefix ),
nToken( nTok )
{
- if ( nFastTok ) // alternative value for duplicate/dummy tokens
- nFastToken = nFastTok;
}
};