summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-18 16:36:33 +0000
committerDavid Robillard <d@drobilla.net>2014-01-18 16:36:33 +0000
commit229be04694a5b99a1e9c384a7c65452ebb30eedd (patch)
tree84f4f3600ebcc9266032683cdca8ba43a23ec93f /src
parentec8939dd7ef5267b43bd8ae3590e783495f0cfc9 (diff)
downloadingen-229be04694a5b99a1e9c384a7c65452ebb30eedd.tar.gz
ingen-229be04694a5b99a1e9c384a7c65452ebb30eedd.tar.bz2
ingen-229be04694a5b99a1e9c384a7c65452ebb30eedd.zip
Fix some minor issues found by clang.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5318 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Log.cpp10
-rw-r--r--src/gui/Port.hpp1
-rw-r--r--src/serialisation/Serialiser.cpp2
3 files changed, 6 insertions, 7 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 402e4609..6f8fe841 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -23,12 +23,12 @@ namespace Ingen {
static const char* const ANSI_RESET = "\033[0m";
static const char* const ANSI_RED = "\033[0;31m";
-static const char* const ANSI_GREEN = "\033[0;32m";
+//static const char* const ANSI_GREEN = "\033[0;32m";
static const char* const ANSI_YELLOW = "\033[0;33m";
-static const char* const ANSI_BLUE = "\033[0;34m";
-static const char* const ANSI_MAGENTA = "\033[0;35m";
-static const char* const ANSI_CYAN = "\033[0;36m";
-static const char* const ANSI_WHITE = "\033[0;37m";
+//static const char* const ANSI_BLUE = "\033[0;34m";
+//static const char* const ANSI_MAGENTA = "\033[0;35m";
+//static const char* const ANSI_CYAN = "\033[0;36m";
+//static const char* const ANSI_WHITE = "\033[0;37m";
Log::Log(LV2_Log_Log* log, URIs& uris)
: _log(log)
diff --git a/src/gui/Port.hpp b/src/gui/Port.hpp
index 24cddd4e..a8d16095 100644
--- a/src/gui/Port.hpp
+++ b/src/gui/Port.hpp
@@ -88,7 +88,6 @@ private:
App& _app;
WPtr<const Client::PortModel> _port_model;
- bool _pressed : 1;
bool _entered : 1;
bool _flipped : 1;
};
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index a8140c23..425ac00f 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -328,7 +328,7 @@ Serialiser::Impl::serialise_graph(SPtr<const Node> graph,
Raul::Symbol symbol("_");
Node::Properties::const_iterator s = graph->properties().find(uris.lv2_symbol);
if (s == graph->properties().end()
- || !s->second.type() == _world.forge().String
+ || s->second.type() != _world.forge().String
|| !Raul::Symbol::is_valid(s->second.ptr<char>())) {
const std::string base = Glib::path_get_basename(
_model->base_uri().to_c_string());