summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-04 14:13:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-05 06:42:40 +0000
commitff339c89b51ed571d55c762e43aa1a6ee9ada1cb (patch)
tree5ed1c9a8353037745ce49e5a97e696157a0dcbca /include/svl
parent3d6c84f2d9683b23c14fa5bf50ca4425cf4ceb04 (diff)
loplugin:constantparam part2
Change-Id: I7ec4c946be52a6b56aee908426f95ecacc7b0746 Reviewed-on: https://gerrit.libreoffice.org/36072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/itempool.hxx6
-rw-r--r--include/svl/style.hxx4
-rw-r--r--include/svl/svdde.hxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 33449286c7da..151a64d367fd 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -80,7 +80,7 @@ public:
const sal_uInt16* GetFrozenIdRanges() const;
protected:
- static inline void SetRefCount(SfxPoolItem& rItem, sal_uInt32 n);
+ static inline void ClearRefCount(SfxPoolItem& rItem);
static inline void AddRef(const SfxPoolItem& rItem, sal_uInt32 n = 1);
static inline sal_uInt32 ReleaseRef(const SfxPoolItem& rItem, sal_uInt32 n = 1);
static inline void SetKind( SfxPoolItem& rItem, SfxItemKind nRef );
@@ -217,9 +217,9 @@ private:
};
// only the pool may manipulate the reference counts
-inline void SfxItemPool::SetRefCount(SfxPoolItem& rItem, sal_uInt32 n)
+inline void SfxItemPool::ClearRefCount(SfxPoolItem& rItem)
{
- rItem.SetRefCount(n);
+ rItem.SetRefCount(0);
}
// only the pool may manipulate the reference counts
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 878c0bc464e9..01f402a8cb4c 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -308,12 +308,12 @@ public:
{ return pStyleSh; }
};
-class SVL_DLLPUBLIC SfxStyleSheetHintExtended: public SfxStyleSheetHint
+class SVL_DLLPUBLIC SfxStyleSheetModifiedHint: public SfxStyleSheetHint
{
OUString aName;
public:
- SfxStyleSheetHintExtended( SfxHintId, const OUString& rOld,
+ SfxStyleSheetModifiedHint( const OUString& rOld,
SfxStyleSheetBase& );
const OUString& GetOldName() const { return aName; }
};
diff --git a/include/svl/svdde.hxx b/include/svl/svdde.hxx
index 5a2696cac197..d90dbed606e7 100644
--- a/include/svl/svdde.hxx
+++ b/include/svl/svdde.hxx
@@ -148,7 +148,7 @@ public:
class SVL_DLLPUBLIC DdeHotLink : public DdeLink
{
public:
- DdeHotLink( DdeConnection&, const OUString&, long = 0 );
+ DdeHotLink( DdeConnection&, const OUString& );
};