summaryrefslogtreecommitdiffstats
path: root/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 /svl
parentloplugin:constantparam (diff)
downloadcore-ff339c89b51ed571d55c762e43aa1a6ee9ada1cb.tar.gz
core-ff339c89b51ed571d55c762e43aa1a6ee9ada1cb.zip
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 'svl')
-rw-r--r--svl/source/items/itempool.cxx4
-rw-r--r--svl/source/items/poolio.cxx2
-rw-r--r--svl/source/items/style.cxx8
-rw-r--r--svl/source/svdde/ddecli.cxx4
-rw-r--r--svl/unx/source/svdde/ddedummy.cxx4
5 files changed, 10 insertions, 12 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 63de4bbd4130..36b2eb006f77 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -523,7 +523,7 @@ void SfxItemPool::Delete()
if (rItemPtr)
{
#ifdef DBG_UTIL
- SetRefCount(*rItemPtr, 0);
+ ClearRefCount(*rItemPtr);
#endif
delete rItemPtr;
rItemPtr = nullptr;
@@ -553,7 +553,7 @@ void SfxItemPool::Delete()
if (rItemPtr)
{
#ifdef DBG_UTIL
- SetRefCount(*rItemPtr, 0);
+ ClearRefCount(*rItemPtr);
#endif
delete rItemPtr;
rItemPtr = nullptr;
diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx
index 709e4808e2cd..d2829f703b16 100644
--- a/svl/source/items/poolio.cxx
+++ b/svl/source/items/poolio.cxx
@@ -457,7 +457,7 @@ void SfxItemPool_Impl::readTheItems (
{
// Reuse
SfxItemPool::AddRef( *pOldItem, rpNewItem->GetRefCount() );
- SfxItemPool::SetRefCount( *rpNewItem, 0 );
+ SfxItemPool::ClearRefCount( *rpNewItem );
delete rpNewItem;
rpNewItem = pOldItem;
bFound = true;
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index e71f9375493c..a80b3be6ad02 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -60,13 +60,12 @@ static DbgStyleSheetReferences aDbgStyleSheetReferences;
#endif
-SfxStyleSheetHintExtended::SfxStyleSheetHintExtended
+SfxStyleSheetModifiedHint::SfxStyleSheetModifiedHint
(
- SfxHintId nAction,
const OUString& rOldName,
SfxStyleSheetBase& rStyleSheet // Remains with the caller
)
-: SfxStyleSheetHint( nAction, rStyleSheet ),
+: SfxStyleSheetHint( SfxHintId::StyleSheetModified, rStyleSheet ),
aName( rOldName )
{}
@@ -185,8 +184,7 @@ bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
if (bReIndexNow)
pPool->Reindex();
pPool->SetSearchMask(eTmpFam, nTmpMask);
- pPool->Broadcast( SfxStyleSheetHintExtended(
- SfxHintId::StyleSheetModified, aOldName, *this ) );
+ pPool->Broadcast( SfxStyleSheetModifiedHint( aOldName, *this ) );
}
return true;
}
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx
index 3f76d96fc779..ee06fd3dd8c9 100644
--- a/svl/source/svdde/ddecli.cxx
+++ b/svl/source/svdde/ddecli.cxx
@@ -367,8 +367,8 @@ DdeRequest::DdeRequest( DdeConnection& d, const OUString& i, long n )
nType = XTYP_REQUEST;
}
-DdeHotLink::DdeHotLink( DdeConnection& d, const OUString& i, long n )
- : DdeLink( d, i, n )
+DdeHotLink::DdeHotLink( DdeConnection& d, const OUString& i )
+ : DdeLink( d, i, 0 )
{
nType = XTYP_ADVSTART;
}
diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx
index c8f95d7c15ce..7f032ef20446 100644
--- a/svl/unx/source/svdde/ddedummy.cxx
+++ b/svl/unx/source/svdde/ddedummy.cxx
@@ -317,8 +317,8 @@ void DdeLink::Notify()
{
}
-DdeHotLink::DdeHotLink( DdeConnection& rConnection, const OUString& rString, long l )
- : DdeLink( rConnection, rString, l )
+DdeHotLink::DdeHotLink( DdeConnection& rConnection, const OUString& rString )
+ : DdeLink( rConnection, rString, 0 )
{
}