summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events/CreatePatchEvent.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-18 03:58:03 +0000
committerDavid Robillard <d@drobilla.net>2008-08-18 03:58:03 +0000
commit640cbadb284544ecc876ae650c1c945c57adcce8 (patch)
treef9170b584f9c622c3a809b7275d823e4f1ac845f /src/libs/engine/events/CreatePatchEvent.hpp
parentaf759288a2517f9acf4c28f79d9c43be0086a221 (diff)
downloadingen-640cbadb284544ecc876ae650c1c945c57adcce8.tar.gz
ingen-640cbadb284544ecc876ae650c1c945c57adcce8.tar.bz2
ingen-640cbadb284544ecc876ae650c1c945c57adcce8.zip
Tolerate attempts to create patches with illegal paths.
git-svn-id: http://svn.drobilla.net/lad/ingen@1429 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/CreatePatchEvent.hpp')
-rw-r--r--src/libs/engine/events/CreatePatchEvent.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/engine/events/CreatePatchEvent.hpp b/src/libs/engine/events/CreatePatchEvent.hpp
index bcbcf35b..733aba17 100644
--- a/src/libs/engine/events/CreatePatchEvent.hpp
+++ b/src/libs/engine/events/CreatePatchEvent.hpp
@@ -47,14 +47,14 @@ public:
void post_process();
private:
- enum ErrorType { NO_ERROR, OBJECT_EXISTS, PARENT_NOT_FOUND, INVALID_POLY };
+ enum ErrorType { NO_ERROR, OBJECT_EXISTS, PARENT_NOT_FOUND, INVALID_POLY, INVALID_PATH };
- Raul::Path _path;
- PatchImpl* _patch;
- PatchImpl* _parent;
- CompiledPatch* _compiled_patch;
- int _poly;
- ErrorType _error;
+ const std::string _path;
+ PatchImpl* _patch;
+ PatchImpl* _parent;
+ CompiledPatch* _compiled_patch;
+ int _poly;
+ ErrorType _error;
};