diff options
author | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
commit | 39d5400b39c8089287d5d294becae1268d232d31 (patch) | |
tree | 0cf73ef86233121bc7f0408ca536aad196d3166c /src/libs/engine/PluginLibrary.h | |
parent | e135edf1e65ac978f86f4849bd3667299dd69c7e (diff) | |
download | ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.gz ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.bz2 ingen-39d5400b39c8089287d5d294becae1268d232d31.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PluginLibrary.h')
-rw-r--r-- | src/libs/engine/PluginLibrary.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/engine/PluginLibrary.h b/src/libs/engine/PluginLibrary.h index 6f79ee57..dc4cbfeb 100644 --- a/src/libs/engine/PluginLibrary.h +++ b/src/libs/engine/PluginLibrary.h @@ -43,7 +43,7 @@ public: * successfully dlopen'ed. */ PluginLibrary(const string& path) - : m_path(path), m_handle(NULL) + : _path(path), _handle(NULL) {} ~PluginLibrary() @@ -59,12 +59,12 @@ public: */ void open() { - if (m_handle == NULL) { + if (_handle == NULL) { dlerror(); - m_handle = dlopen(m_path.c_str(), RTLD_NOW); - if (m_handle == NULL) + _handle = dlopen(_path.c_str(), RTLD_NOW); + if (_handle == NULL) cerr << "[PluginLibrary] Warning: Error opening shared library " - << m_path << "(" << dlerror() << ")" << endl; + << _path << "(" << dlerror() << ")" << endl; } } @@ -74,20 +74,20 @@ public: */ void close() { - if (m_handle != NULL) { + if (_handle != NULL) { dlerror(); - if (dlclose(m_handle)) - cerr << "[PluginLibrary] Error closing shared library " << m_path + if (dlclose(_handle)) + cerr << "[PluginLibrary] Error closing shared library " << _path << "(" << dlerror() << ")" << endl; } - m_handle = NULL; + _handle = NULL; } - void* handle() const { return m_handle; } + void* handle() const { return _handle; } private: - string m_path; - void* m_handle; + string _path; + void* _handle; }; |