aboutsummaryrefslogtreecommitdiff
path: root/osc_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'osc_server.h')
-rw-r--r--osc_server.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/osc_server.h b/osc_server.h
index 3244096..f6d0c51 100644
--- a/osc_server.h
+++ b/osc_server.h
@@ -21,12 +21,10 @@ public:
char *path;
void *data;
- MethodHandlerId(const char *types, const char *path,
- void *d = NULL) : data(d)
- {
- MethodHandlerId::types = strdup(types);
- MethodHandlerId::path = strdup(path);
- }
+ MethodHandlerId(const char *_types, const char *_path,
+ void *_data = NULL) :
+ types(strdup(_types)), path(strdup(_path)),
+ data(_data) {}
~MethodHandlerId()
{
free(types);