[Libreoffice-commits] core.git: sw/inc sw/source
Jan-Marek Glogowski
glogow at fbihome.de
Fri Jul 14 15:59:08 UTC 2017
sw/inc/ndgrf.hxx | 2 +-
sw/source/core/graphic/ndgrf.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3039b7cae36abb7e9bfffa4fbbba023721376568
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Fri Jul 14 17:57:18 2017 +0200
loplugin:staticmethods
Change-Id: I40d08932115e07470de73b0f0dc9b9b03e608fbe
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index d80d77d4db27..60ae5ca36cb4 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -71,7 +71,7 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
bool ImportGraphic( SvStream& rStrm );
DECL_LINK( SwapGraphic, const GraphicObject*, SvStream* );
- DECL_LINK( SwapReplacement, const GraphicObject*, SvStream* );
+ DECL_STATIC_LINK( SwGrfNode, SwapReplacement, const GraphicObject*, SvStream* );
/** helper method to determine stream for the embedded graphic.
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 6976b4510a04..5ab05d044bd5 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -960,7 +960,7 @@ SwContentNode* SwGrfNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
return pGrfNd;
}
-IMPL_LINK(SwGrfNode, SwapReplacement, const GraphicObject*, pGrfObj, SvStream*)
+IMPL_STATIC_LINK(SwGrfNode, SwapReplacement, const GraphicObject*, pGrfObj, SvStream*)
{
// replacement image is always swapped
if (pGrfObj->IsInSwapOut())
More information about the Libreoffice-commits
mailing list