summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Block.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 16:05:05 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commit71808f61f7db48a7ab4e16537b94ee5686749909 (patch)
tree5529b7c60b2488ac9575ddcb597c905bde577399 /src/server/LV2Block.cpp
parent15b3b0e9f8823752f80c7e597a70749813e61c79 (diff)
downloadingen-71808f61f7db48a7ab4e16537b94ee5686749909.tar.gz
ingen-71808f61f7db48a7ab4e16537b94ee5686749909.tar.bz2
ingen-71808f61f7db48a7ab4e16537b94ee5686749909.zip
Remove superfluous using namespace declarations
Diffstat (limited to 'src/server/LV2Block.cpp')
-rw-r--r--src/server/LV2Block.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp
index 05b76737..56ef97a1 100644
--- a/src/server/LV2Block.cpp
+++ b/src/server/LV2Block.cpp
@@ -46,8 +46,6 @@
#include "RunContext.hpp"
#include "Worker.hpp"
-using namespace std;
-
namespace Ingen {
namespace Server {
@@ -367,7 +365,7 @@ LV2Block::instantiate(BufferFactory& bufs, const LilvState* state)
if (!val.type() && (port_type != PortType::ATOM)) {
// Ensure numeric ports have a value, use 0 by default
- val = forge.make(isnan(def_values[j]) ? 0.0f : def_values[j]);
+ val = forge.make(std::isnan(def_values[j]) ? 0.0f : def_values[j]);
}
PortImpl* port = (direction == INPUT)
@@ -382,10 +380,10 @@ LV2Block::instantiate(BufferFactory& bufs, const LilvState* state)
if (direction == INPUT && (port_type == PortType::CONTROL
|| port_type == PortType::CV)) {
port->set_value(val);
- if (!isnan(min_values[j])) {
+ if (!std::isnan(min_values[j])) {
port->set_minimum(forge.make(min_values[j]));
}
- if (!isnan(max_values[j])) {
+ if (!std::isnan(max_values[j])) {
port->set_maximum(forge.make(max_values[j]));
}
}