From a486a15b872b607803ac9dd44a428cd88372560b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Jan 2012 22:20:27 +0000 Subject: Lint. git-svn-id: http://svn.drobilla.net/sord/trunk@186 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sordmm.hpp | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'sord/sordmm.hpp') diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index b3265d2..5f71f09 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -219,7 +219,8 @@ operator<<(std::ostream& os, const Node& node) class URI : public Node { public: - inline URI(World& world, const std::string& s) : Node(world, Node::URI, s) {} + inline URI(World& world, const std::string& s) + : Node(world, Node::URI, s) {} }; class Curie : public Node { @@ -230,7 +231,8 @@ public: class Literal : public Node { public: - inline Literal(World& world, const std::string& s) : Node(world, Node::LITERAL, s) {} + inline Literal(World& world, const std::string& s) + : Node(world, Node::LITERAL, s) {} }; inline @@ -355,7 +357,11 @@ struct Iter : public Wrapper { inline ~Iter() { sord_iter_free(_c_obj); } inline bool end() const { return sord_iter_end(_c_obj); } inline bool next() const { return sord_iter_next(_c_obj); } - inline Iter& operator++() { assert(!end()); next(); return *this; } + inline Iter& operator++() { + assert(!end()); + next(); + return *this; + } inline const Node get_subject() const { SordQuad quad; sord_iter_get(_c_obj, quad); @@ -398,15 +404,15 @@ public: inline SerdStatus write_to_file( const std::string& uri, - SerdSyntax syntax=SERD_TURTLE, - SerdStyle style=(SerdStyle)(SERD_STYLE_ABBREVIATED - |SERD_STYLE_CURIED)); + SerdSyntax syntax = SERD_TURTLE, + SerdStyle style = (SerdStyle)(SERD_STYLE_ABBREVIATED + |SERD_STYLE_CURIED)); inline std::string write_to_string( const std::string& base_uri, - SerdSyntax syntax=SERD_TURTLE, - SerdStyle style=(SerdStyle)(SERD_STYLE_ABBREVIATED - |SERD_STYLE_CURIED)); + SerdSyntax syntax = SERD_TURTLE, + SerdStyle style = (SerdStyle)(SERD_STYLE_ABBREVIATED + |SERD_STYLE_CURIED)); inline void add_statement(const Node& subject, const Node& predicate, @@ -581,7 +587,7 @@ Model::find(const Node& subject, return Iter(_world, sord_find(_c_obj, quad)); } -} // namespace Sord +} // namespace Sord -#endif // SORD_SORDMM_HPP +#endif // SORD_SORDMM_HPP -- cgit v1.2.1