From 0c8225635ce36492343c2a1d1b53b13a3f1bb199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jun 2015 13:12:17 +0200 Subject: [PATCH] Fix FTBFS with clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit f50771a04cee9a25d1701e95be99cc7e9f0f74ee) --- konq-plugins/domtreeviewer/domtreecommands.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/konq-plugins/domtreeviewer/domtreecommands.cpp b/konq-plugins/domtreeviewer/domtreecommands.cpp index 68aab4a..0ee3d33 100644 --- a/konq-plugins/domtreeviewer/domtreecommands.cpp +++ b/konq-plugins/domtreeviewer/domtreecommands.cpp @@ -79,14 +79,18 @@ ManipulationCommandSignalEmitter* ManipulationCommand::mcse() // == ChangedNodeSet ================================================ -namespace domtreeviewer { - -// collection of nodes for which to emit the nodeChanged signal +namespace DOM { + inline static bool operator <(const DOM::Node &n1, const DOM::Node &n2) { return (long)n1.handle() - (long)n2.handle() < 0; } + +} + +namespace domtreeviewer { +// collection of nodes for which to emit the nodeChanged signal class ChangedNodeSet : public TQMap { };