summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-21 10:31:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-21 10:31:39 +0200
commit6fbab2ce87372bd98275d8239cd782d0ca6375e8 (patch)
treebe104472386dcb866081cb8ef3690309ea86b3a1 /slideshow
parent6afa5614463fbc952d5a983c813d587edbc82fac (diff)
loplugin:unreffun
Change-Id: I526b9e1cff25a30c3f6b935c1a11ef571f7a12ea
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/smilfunctionparser.cxx15
-rw-r--r--slideshow/source/engine/sp_debug.cxx8
2 files changed, 15 insertions, 8 deletions
diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx
index 7ded14fe2777..3cc64da68f8f 100644
--- a/slideshow/source/engine/smilfunctionparser.cxx
+++ b/slideshow/source/engine/smilfunctionparser.cxx
@@ -626,4 +626,19 @@ namespace slideshow
}
}
+// debug hooks
+
+namespace boost
+{
+
+void sp_scalar_constructor_hook(void *)
+{
+}
+
+void sp_scalar_destructor_hook(void *)
+{
+}
+
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/slideshow/source/engine/sp_debug.cxx b/slideshow/source/engine/sp_debug.cxx
index 0a6860794938..38d507a43ab6 100644
--- a/slideshow/source/engine/sp_debug.cxx
+++ b/slideshow/source/engine/sp_debug.cxx
@@ -198,10 +198,6 @@ std::size_t find_unreachable_objects(bool report)
namespace boost
{
-void sp_scalar_constructor_hook(void *)
-{
-}
-
void sp_scalar_constructor_hook(void * px, std::size_t size, void * pn)
{
#ifdef BOOST_HAS_THREADS
@@ -213,10 +209,6 @@ void sp_scalar_constructor_hook(void * px, std::size_t size, void * pn)
get_map()[pn] = std::make_pair(px, size);
}
-void sp_scalar_destructor_hook(void *)
-{
-}
-
void sp_scalar_destructor_hook(void *, std::size_t, void * pn)
{
#ifdef BOOST_HAS_THREADS