From a42744e1068a8630d8034df73bb344ca21a53b32 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Aug 2012 13:19:39 +0000 Subject: Remove all 'using namespace Raul'. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4715 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/SubpatchModule.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/gui/SubpatchModule.cpp') diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp index dd09e992..5425677c 100644 --- a/src/gui/SubpatchModule.cpp +++ b/src/gui/SubpatchModule.cpp @@ -29,7 +29,6 @@ #include "WindowFactory.hpp" using namespace std; -using namespace Raul; namespace Ingen { @@ -63,15 +62,14 @@ SubpatchModule::on_double_click(GdkEventButton* event) void SubpatchModule::store_location(double ax, double ay) { - const Atom x(app().forge().make(static_cast(ax))); - const Atom y(app().forge().make(static_cast(ay))); - const URIs& uris = app().uris(); - const Atom& existing_x = _node->get_property(uris.ingen_canvasX); - const Atom& existing_y = _node->get_property(uris.ingen_canvasY); + const Raul::Atom x(app().forge().make(static_cast(ax))); + const Raul::Atom y(app().forge().make(static_cast(ay))); - if (x != existing_x && y != existing_y) { + if (x != _node->get_property(uris.ingen_canvasX) || + y != _node->get_property(uris.ingen_canvasY)) + { Resource::Properties remove; remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); -- cgit v1.2.1