summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-28 01:44:21 +0000
committerDavid Robillard <d@drobilla.net>2012-04-28 01:44:21 +0000
commit3f6829abef9cc03bc344c4cad1bc7abe9490d1fd (patch)
treed730acc84e982a5329aacccf7f68b25beb258071 /ingen
parent70f4bcdde45e94dbe27300a5069994aebc523cab (diff)
downloadingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.tar.gz
ingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.tar.bz2
ingen-3f6829abef9cc03bc344c4cad1bc7abe9490d1fd.zip
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4289 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen')
-rw-r--r--ingen/GraphObject.hpp6
-rw-r--r--ingen/Interface.hpp6
-rw-r--r--ingen/Status.hpp2
-rw-r--r--ingen/client/NodeModel.hpp2
-rw-r--r--ingen/client/PortModel.hpp11
-rw-r--r--ingen/client/ThreadedSigClientInterface.hpp2
-rw-r--r--ingen/serialisation/Parser.hpp2
-rw-r--r--ingen/serialisation/Serialiser.hpp7
-rw-r--r--ingen/shared/ClashAvoider.hpp5
-rw-r--r--ingen/shared/Forge.hpp2
-rw-r--r--ingen/shared/World.hpp5
11 files changed, 37 insertions, 13 deletions
diff --git a/ingen/GraphObject.hpp b/ingen/GraphObject.hpp
index 3a8119c9..65d2eb55 100644
--- a/ingen/GraphObject.hpp
+++ b/ingen/GraphObject.hpp
@@ -21,7 +21,11 @@
#include "ingen/Resource.hpp"
-namespace Raul { class Atom; class Path; class Symbol; }
+namespace Raul {
+class Atom;
+class Path;
+class Symbol;
+}
namespace Ingen {
diff --git a/ingen/Interface.hpp b/ingen/Interface.hpp
index cf0fae08..c1472e5e 100644
--- a/ingen/Interface.hpp
+++ b/ingen/Interface.hpp
@@ -20,7 +20,11 @@
#include "ingen/Resource.hpp"
#include "ingen/Status.hpp"
-namespace Raul { class Atom; class Path; class URI; }
+namespace Raul {
+class Atom;
+class Path;
+class URI;
+}
namespace Ingen {
diff --git a/ingen/Status.hpp b/ingen/Status.hpp
index 8dc819ea..79655e3d 100644
--- a/ingen/Status.hpp
+++ b/ingen/Status.hpp
@@ -58,7 +58,7 @@ ingen_status_string(Status st)
case CREATION_FAILED: return "Creation failed";
case DIRECTION_MISMATCH: return "Direction mismatch";
case EXISTS: return "Object exists";
- case INTERNAL_ERROR: return "Internal error" ;
+ case INTERNAL_ERROR: return "Internal error";
case INVALID_PARENT_PATH: return "Invalid parent path";
case INVALID_POLY: return "Invalid polyphony";
case NOT_FOUND: return "Object not found";
diff --git a/ingen/client/NodeModel.hpp b/ingen/client/NodeModel.hpp
index f01ea641..310fbcc1 100644
--- a/ingen/client/NodeModel.hpp
+++ b/ingen/client/NodeModel.hpp
@@ -85,7 +85,7 @@ protected:
NodeModel(Shared::URIs& uris,
SharedPtr<PluginModel> plugin,
const Raul::Path& path);
- NodeModel(const Raul::Path& path);
+ explicit NodeModel(const Raul::Path& path);
void add_child(SharedPtr<ObjectModel> c);
bool remove_child(SharedPtr<ObjectModel> c);
diff --git a/ingen/client/PortModel.hpp b/ingen/client/PortModel.hpp
index 2307e5fe..d9fce5e4 100644
--- a/ingen/client/PortModel.hpp
+++ b/ingen/client/PortModel.hpp
@@ -100,8 +100,15 @@ private:
void add_child(SharedPtr<ObjectModel> c) { throw; }
bool remove_child(SharedPtr<ObjectModel> c) { throw; }
- void connected_to(SharedPtr<PortModel> p) { ++_connections; _signal_connection.emit(p); }
- void disconnected_from(SharedPtr<PortModel> p) { --_connections; _signal_disconnection.emit(p); }
+ void connected_to(SharedPtr<PortModel> p) {
+ ++_connections;
+ _signal_connection.emit(p);
+ }
+
+ void disconnected_from(SharedPtr<PortModel> p) {
+ --_connections;
+ _signal_disconnection.emit(p);
+ }
void set(SharedPtr<ObjectModel> model);
diff --git a/ingen/client/ThreadedSigClientInterface.hpp b/ingen/client/ThreadedSigClientInterface.hpp
index c06524c1..c4859e0a 100644
--- a/ingen/client/ThreadedSigClientInterface.hpp
+++ b/ingen/client/ThreadedSigClientInterface.hpp
@@ -50,7 +50,7 @@ namespace Client {
class ThreadedSigClientInterface : public SigClientInterface
{
public:
- ThreadedSigClientInterface(uint32_t queue_size)
+ explicit ThreadedSigClientInterface(uint32_t queue_size)
: _sigs(queue_size)
, response_slot(_signal_response.make_slot())
, error_slot(_signal_error.make_slot())
diff --git a/ingen/serialisation/Parser.hpp b/ingen/serialisation/Parser.hpp
index 2c353f3f..ceaaa99c 100644
--- a/ingen/serialisation/Parser.hpp
+++ b/ingen/serialisation/Parser.hpp
@@ -40,7 +40,7 @@ namespace Serialisation {
*/
class Parser {
public:
- Parser(Shared::World& world);
+ explicit Parser(Shared::World& world);
virtual ~Parser() {}
diff --git a/ingen/serialisation/Serialiser.hpp b/ingen/serialisation/Serialiser.hpp
index 6a4a2705..cfc11c02 100644
--- a/ingen/serialisation/Serialiser.hpp
+++ b/ingen/serialisation/Serialiser.hpp
@@ -36,7 +36,10 @@ class Node;
class Port;
class Connection;
-namespace Shared { class World; class Store; }
+namespace Shared {
+class World;
+class Store;
+}
namespace Serialisation {
@@ -47,7 +50,7 @@ namespace Serialisation {
class Serialiser
{
public:
- Serialiser(Shared::World& world);
+ explicit Serialiser(Shared::World& world);
virtual ~Serialiser();
typedef GraphObject::Properties Properties;
diff --git a/ingen/shared/ClashAvoider.hpp b/ingen/shared/ClashAvoider.hpp
index 54d0d8cc..224eb509 100644
--- a/ingen/shared/ClashAvoider.hpp
+++ b/ingen/shared/ClashAvoider.hpp
@@ -23,7 +23,10 @@
#include "ingen/Interface.hpp"
-namespace Raul { class Atom; class Path; }
+namespace Raul {
+class Atom;
+class Path;
+}
namespace Ingen {
namespace Shared {
diff --git a/ingen/shared/Forge.hpp b/ingen/shared/Forge.hpp
index 842477f0..084ca4fb 100644
--- a/ingen/shared/Forge.hpp
+++ b/ingen/shared/Forge.hpp
@@ -25,7 +25,7 @@ namespace Ingen {
class Forge : public Raul::Forge {
public:
- Forge(Shared::LV2URIMap& map);
+ explicit Forge(Shared::LV2URIMap& map);
std::string str(const Raul::Atom& atom);
};
diff --git a/ingen/shared/World.hpp b/ingen/shared/World.hpp
index 94a3e787..f43afaa0 100644
--- a/ingen/shared/World.hpp
+++ b/ingen/shared/World.hpp
@@ -37,7 +37,10 @@ namespace Ingen {
class EngineBase;
class Interface;
-namespace Serialisation { class Serialiser; class Parser; }
+namespace Serialisation {
+class Serialiser;
+class Parser;
+}
namespace Shared {