summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-17 08:49:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-17 08:49:24 +0100
commit272d330cec558040d87f8386aa7aaab67f8adab6 (patch)
tree6ad20a70217ba6a158412ced246f4216f83fee15
parent0fcc1718e6cc8cfadabea9ab1344046b716f51df (diff)
loplugin:unreffun
Change-Id: I27ce8fc805f8b3fa127fb919a9c571de1aeef589
-rw-r--r--vcl/inc/vcldemo-debug.hxx25
-rw-r--r--vcl/source/gdi/impimagetree.cxx4
-rw-r--r--vcl/workben/vcldemo.cxx5
3 files changed, 28 insertions, 6 deletions
diff --git a/vcl/inc/vcldemo-debug.hxx b/vcl/inc/vcldemo-debug.hxx
new file mode 100644
index 000000000000..37dae2481b9e
--- /dev/null
+++ b/vcl/inc/vcldemo-debug.hxx
@@ -0,0 +1,25 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_VCL_INC_VCLDEMO_DEBUG_HXX
+#define INCLUDED_VCL_INC_VCLDEMO_DEBUG_HXX
+
+#include <sal/config.h>
+
+#include <com/sun/star/uno/Sequence.hxx>
+#include <rtl/ustring.hxx>
+#include <sal/types.h>
+#include <vcl/dllapi.h>
+
+// For vcldemo / debugging
+VCL_DLLPUBLIC css::uno::Sequence< OUString > ImageTree_getAllImageNames();
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 9f2741bfb133..fb0756720d75 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -45,6 +45,7 @@
#include "vcl/settings.hxx"
#include "vcl/svapp.hxx"
#include "impimagetree.hxx"
+#include <vcldemo-debug.hxx>
namespace {
@@ -352,9 +353,6 @@ css::uno::Reference< css::container::XNameAccess > ImplImageTree::getNameAccess(
return m_path.second;
}
-// For vcldemo / debugging
-SAL_DLLPUBLIC css::uno::Sequence< OUString > ImageTree_getAllImageNames();
-
/// Recursively dump all names ...
css::uno::Sequence< OUString > ImageTree_getAllImageNames()
{
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 22388249d292..1be53517b42b 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -31,12 +31,11 @@
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <vcldemo-debug.hxx>
+
#define FIXME_SELF_INTERSECTING_WORKING 0
#define FIXME_BOUNCE_BUTTON 0
-// debugging hook just for us
-SAL_DLLPUBLIC css::uno::Sequence< OUString > ImageTree_getAllImageNames();
-
using namespace css;
enum RenderStyle {