aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/qsignal.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-17 13:56:53 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-17 19:54:36 -0300
commit005aeaf8290ff9308bb9ad0edfec1949e8125772 (patch)
tree0aea147cba9efc43a2fceabd10914fd5692fdca5 /libpyside/qsignal.h
parent7001f3df8fd969cbd619fc33172d74c738f796a1 (diff)
Fixed memory leaks.
Used PyObject on attr functions. Code style update. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/qsignal.h')
-rw-r--r--libpyside/qsignal.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/libpyside/qsignal.h b/libpyside/qsignal.h
index d39d2bb9d..2ba5e984e 100644
--- a/libpyside/qsignal.h
+++ b/libpyside/qsignal.h
@@ -1,5 +1,5 @@
-#ifndef QSIGNAL_H
-#define QSIGNAL_H
+#ifndef PYSIDE_SIGNAL_H
+#define PYSIDE_SIGNAL_H
#include <pysidemacros.h>
#include <Python.h>
@@ -10,10 +10,10 @@ namespace PySide
typedef struct {
PyObject_HEAD
- char *signal_name;
- char *signature;
- PyObject *source;
- PyObject *next;
+ char* signalName;
+ char* signature;
+ PyObject* source;
+ PyObject* next;
} SignalInstanceData;
@@ -21,10 +21,11 @@ extern "C"
{
PyAPI_DATA(PyTypeObject) Signal_Type;
PyAPI_DATA(PyTypeObject) SignalInstance_Type;
- PYSIDE_API PyAPI_FUNC(PyObject*) signal_new(const char *name, ...);
+ PYSIDE_API PyAPI_FUNC(PyObject*) signal_new(const char* name, ...);
}; //extern "C"
-PYSIDE_API void signal_update_source(PyObject *source);
+PYSIDE_API void signal_update_source(PyObject* source);
} //namespace PySide
+
#endif