From 229be04694a5b99a1e9c384a7c65452ebb30eedd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jan 2014 16:36:33 +0000 Subject: Fix some minor issues found by clang. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5318 a436a847-0d15-0410-975c-d299462d15a1 --- src/Log.cpp | 10 +++++----- src/gui/Port.hpp | 1 - src/serialisation/Serialiser.cpp | 2 +- 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 _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 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())) { const std::string base = Glib::path_get_basename( _model->base_uri().to_c_string()); -- cgit v1.2.1