From 39d5400b39c8089287d5d294becae1268d232d31 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2007 03:22:42 +0000 Subject: Mad sed-fu for consistent private member naming. git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/PluginLibrary.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/libs/engine/PluginLibrary.h') 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; }; -- cgit v1.2.1