aboutsummaryrefslogtreecommitdiff
path: root/tests/pa-mock.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-01-29 08:34:50 -0600
committerTed Gould <ted@gould.cx>2015-01-29 08:34:50 -0600
commit7f8f6bf4c2da5056fec32c82986c4f5af20113a9 (patch)
tree04a4a45abe60a6248f9f02038434417235cd4793 /tests/pa-mock.cpp
parent8fc91cb9823afc3b4dcaa03422c3dc4611ab034f (diff)
downloadayatana-indicator-sound-7f8f6bf4c2da5056fec32c82986c4f5af20113a9.tar.gz
ayatana-indicator-sound-7f8f6bf4c2da5056fec32c82986c4f5af20113a9.tar.bz2
ayatana-indicator-sound-7f8f6bf4c2da5056fec32c82986c4f5af20113a9.zip
Make the destructor private to protect from accidental deleting
Diffstat (limited to 'tests/pa-mock.cpp')
-rw-r--r--tests/pa-mock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pa-mock.cpp b/tests/pa-mock.cpp
index 8ca2374..5dd5c9b 100644
--- a/tests/pa-mock.cpp
+++ b/tests/pa-mock.cpp
@@ -55,10 +55,12 @@ public:
g_debug("Creating Context: %p", this);
}
+private: /* To ensure we're the only ones who can delete it */
~PAMockContext () {
g_debug("Destroying Context: %p", this);
}
+public:
/* Ref counting */
void ref () {
refcnt++;