diff options
author | David Robillard <d@drobilla.net> | 2011-01-09 20:59:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-09 20:59:40 +0000 |
commit | c1775fa65273b5f5590a0319563159b13e901fbb (patch) | |
tree | e6704c3948b2b6204eec93621d71ceeb50ee1dfd /src/JackDbusDriver.cpp | |
parent | 9a1cd7003886f89e2228d74d61130dc5d24c06a3 (diff) | |
download | patchage-c1775fa65273b5f5590a0319563159b13e901fbb.tar.gz patchage-c1775fa65273b5f5590a0319563159b13e901fbb.tar.bz2 patchage-c1775fa65273b5f5590a0319563159b13e901fbb.zip |
Code cleanups (cpplint).
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2804 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDbusDriver.cpp')
-rw-r--r-- | src/JackDbusDriver.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index 11f1572..4c7e862 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -39,9 +39,6 @@ #include "PatchageEvent.hpp" #include "PatchageModule.hpp" -using namespace std; -using namespace FlowCanvas; - #define JACKDBUS_SERVICE "org.jackaudio.service" #define JACKDBUS_OBJECT "/org/jackaudio/Controller" #define JACKDBUS_IFACE_CONTROL "org.jackaudio.JackControl" @@ -1005,13 +1002,13 @@ JackDriver::is_realtime() const DBusMessage* reply_ptr; dbus_bool_t realtime; - if (!((JackDriver *)this)->call(true, JACKDBUS_IFACE_CONTROL, "IsRealtime", &reply_ptr, DBUS_TYPE_INVALID)) { + if (!this->call(true, JACKDBUS_IFACE_CONTROL, "IsRealtime", &reply_ptr, DBUS_TYPE_INVALID)) { return false; } - if (!dbus_message_get_args(reply_ptr, &((JackDriver *)this)->_dbus_error, DBUS_TYPE_BOOLEAN, &realtime, DBUS_TYPE_INVALID)) { + if (!dbus_message_get_args(reply_ptr, &this->_dbus_error, DBUS_TYPE_BOOLEAN, &realtime, DBUS_TYPE_INVALID)) { dbus_message_unref(reply_ptr); - dbus_error_free(&((JackDriver *)this)->_dbus_error); + dbus_error_free(&this->_dbus_error); error_msg("decoding reply of IsRealtime failed."); return false; } |