summaryrefslogtreecommitdiffstats
path: root/src/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Object.h')
-rw-r--r--src/Object.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Object.h b/src/Object.h
index 9ecaedc..a30ac9c 100644
--- a/src/Object.h
+++ b/src/Object.h
@@ -29,16 +29,19 @@ namespace PY {
class Object {
protected:
template <typename T>
- Object (T *p) : m_p ((GObject *)p) {
+ Object (T *p) : m_p ((GObject *)p)
+ {
g_assert (get <GObject *>() != NULL);
}
- operator GObject * (void) const {
+ operator GObject * (void) const
+ {
return m_p;
}
template <typename T>
- T * get (void) const {
+ T * get (void) const
+ {
return (T *) (GObject *) m_p;
}