summaryrefslogtreecommitdiff
path: root/tools/m4
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-08-22 11:36:07 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-08-22 13:03:54 +0200
commit90f5049d15ae59878392571d6841ac38dee2d978 (patch)
tree394914e53002acd104b78f62318cb9e9d8569e37 /tools/m4
parent1cf5baae92e3854488eae99c6562562b47e1d102 (diff)
downloadglibmm-90f5049d15ae59878392571d6841ac38dee2d978.tar.gz
gmmproc: _CLASS_OPAQUE_REFCOUNTED: Use = delete for the default constructor.
And move it (and the = deleted copy operations) to public.
Diffstat (limited to 'tools/m4')
-rw-r--r--tools/m4/class_opaque_refcounted.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/m4/class_opaque_refcounted.m4 b/tools/m4/class_opaque_refcounted.m4
index 847ac3be..aae4f948 100644
--- a/tools/m4/class_opaque_refcounted.m4
+++ b/tools/m4/class_opaque_refcounted.m4
@@ -166,15 +166,17 @@ ifelse(__OPAQUE_FUNC_NEW,NONE,`dnl
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
__CNAME__* gobj_copy() const;
-protected:
- // Do not derive this. __NAMESPACE__::__CPPNAME__ can neither be constructed nor deleted.
- __CPPNAME__`'();
- void operator delete(void*, std::size_t);
+ __CPPNAME__`'() = delete;
// noncopyable
__CPPNAME__`'(const __CPPNAME__&) = delete;
__CPPNAME__& operator=(const __CPPNAME__&) = delete;
+protected:
+ // Do not derive this. __NAMESPACE__::__CPPNAME__ can neither be constructed nor deleted.
+
+ void operator delete(void*, std::size_t);
+
private:
_IMPORT(SECTION_CLASS2)
')