diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-26 13:48:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-26 13:52:28 +0200 |
commit | 93157d284ea37cca200759804268c0a872852549 (patch) | |
tree | 7116d9eb94ecfc115db83f2155ba686037f618d8 /svtools/qa | |
parent | don't hang on unreachable record ends (diff) | |
download | core-93157d284ea37cca200759804268c0a872852549.tar.gz core-93157d284ea37cca200759804268c0a872852549.zip |
convert Link to Typed
and make it statically allocated, no point in dynamically allocating
such a small object
Change-Id: If476bf5dc1e0d535383d16bc49c8d567776f16cd
Diffstat (limited to 'svtools/qa')
-rw-r--r-- | svtools/qa/unit/GraphicObjectTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/qa/unit/GraphicObjectTest.cxx b/svtools/qa/unit/GraphicObjectTest.cxx index 463a1ce2935c..2801cc210f96 100644 --- a/svtools/qa/unit/GraphicObjectTest.cxx +++ b/svtools/qa/unit/GraphicObjectTest.cxx @@ -52,7 +52,7 @@ public: } private: - DECL_LINK(getLinkStream, GraphicObject*); + DECL_LINK_TYPED(getLinkStream, const GraphicObject*, SvStream*); private: CPPUNIT_TEST_SUITE(GraphicObjectTest); @@ -72,9 +72,9 @@ const Graphic lcl_loadGraphic(const rtl::OUString &rUrl) return Graphic(aImage.GetBitmapEx()); } -IMPL_LINK(GraphicObjectTest, getLinkStream, GraphicObject*, /*pGraphObj*/) +IMPL_LINK_NOARG_TYPED(GraphicObjectTest, getLinkStream, const GraphicObject*, SvStream*) { - return reinterpret_cast<sal_IntPtr>(GRFMGR_AUTOSWAPSTREAM_LINK); + return GRFMGR_AUTOSWAPSTREAM_LINK; } void GraphicObjectTest::testSwap() |