diff options
author | Ted Gould <ted@gould.cx> | 2015-01-29 08:34:50 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2015-01-29 08:34:50 -0600 |
commit | 7f8f6bf4c2da5056fec32c82986c4f5af20113a9 (patch) | |
tree | 04a4a45abe60a6248f9f02038434417235cd4793 /tests | |
parent | 8fc91cb9823afc3b4dcaa03422c3dc4611ab034f (diff) | |
download | ayatana-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')
-rw-r--r-- | tests/pa-mock.cpp | 2 |
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++; |