WaE: Unreferenced function definition [loplugin:unreffun]

Change-Id: I55d6d1d403622e5ec04c29dd407274cf9db20c40
This commit is contained in:
Tor Lillqvist
2014-11-17 14:09:06 +02:00
parent 8b50d6b176
commit 46eb0952f1

View File

@@ -38,7 +38,9 @@ class GraphicObjectTest: public test::BootstrapFixture, public unotest::MacrosTe
{
public:
#if 0
void testSwap();
#endif
void testSizeBasedAutoSwap();
@@ -61,17 +63,23 @@ private:
static const char aGraphicFile[] = "/svtools/qa/unit/data/graphic.png";
static const sal_uLong nGraphicSizeBytes = 4800;
#if 0
const Graphic lcl_loadGraphic(const rtl::OUString &rUrl)
{
const Image aImage(rUrl);
return Graphic(aImage.GetBitmapEx());
}
#endif
IMPL_LINK(GraphicObjectTest, getLinkStream, GraphicObject*, /*pGraphObj*/)
{
return reinterpret_cast<sal_IntPtr>(GRFMGR_AUTOSWAPSTREAM_LINK);
}
#if 0
void GraphicObjectTest::testSwap()
{
// simple non-linked case
@@ -141,6 +149,8 @@ void GraphicObjectTest::testSwap()
}
}
#endif
void GraphicObjectTest::testSizeBasedAutoSwap()
{
// Set cache size to a very small value to check what happens