summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchLibrarian.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-09 14:24:56 +0000
committerDavid Robillard <d@drobilla.net>2006-09-09 14:24:56 +0000
commitfca95e5d454d37bd74b98f5bce35cfcbaee86c3f (patch)
tree97fcf6e8afaf4356d46a24236e9aa2451ab55698 /src/libs/client/PatchLibrarian.h
parentb853b3dde1f7028dd275f78433a6ad9b5b9f61c7 (diff)
downloadingen-fca95e5d454d37bd74b98f5bce35cfcbaee86c3f.tar.gz
ingen-fca95e5d454d37bd74b98f5bce35cfcbaee86c3f.tar.bz2
ingen-fca95e5d454d37bd74b98f5bce35cfcbaee86c3f.zip
Drove 'er home! Working monolothic Ingenuity (ie. in-process engine).
Countless bugfixes. git-svn-id: http://svn.drobilla.net/lad/ingen@123 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchLibrarian.h')
-rw-r--r--src/libs/client/PatchLibrarian.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/client/PatchLibrarian.h b/src/libs/client/PatchLibrarian.h
index a41d47e3..cd4b4b7a 100644
--- a/src/libs/client/PatchLibrarian.h
+++ b/src/libs/client/PatchLibrarian.h
@@ -22,6 +22,7 @@
#include <string>
#include <libxml/tree.h>
#include <cassert>
+#include "util/CountedPtr.h"
//#include "DummyModelClientInterface.h"
using std::string;
@@ -46,7 +47,7 @@ class PatchLibrarian
public:
// FIXME: return booleans and set an errstr that can be checked or something?
- PatchLibrarian(ModelEngineInterface* _engine)
+ PatchLibrarian(CountedPtr<ModelEngineInterface> _engine)
: _patch_search_path("."), _engine(_engine)
{
assert(_engine);
@@ -63,8 +64,8 @@ public:
private:
string translate_load_path(const string& path);
- string _patch_search_path;
- ModelEngineInterface* const _engine;
+ string _patch_search_path;
+ CountedPtr<ModelEngineInterface> _engine;
/// Translations of paths from the loading file to actual paths (for deprecated patches)
std::map<string, string> _load_path_translations;