summaryrefslogtreecommitdiff
path: root/sw/inc/ndindex.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-20 16:55:24 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-23 04:02:14 +0100
commit310eb66522ff30492e8b3cd86dbafaeb52cdff90 (patch)
treee9b6fa2c114520c5c6ba88d76ac30387ab7b21f1 /sw/inc/ndindex.hxx
parent96c7fff36eb2ed21bba604b3c0c376559e14539c (diff)
inline stream operator and remove object
Change-Id: I9df9a56eca662c6adf0a2cf4ef25a917da8dc609
Diffstat (limited to 'sw/inc/ndindex.hxx')
-rw-r--r--sw/inc/ndindex.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index 72f28de07124..f31c851ad1f8 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -124,7 +124,10 @@ public:
SwNode& GetNode() const { return *pNd; }
};
-std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index);
+inline std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index)
+{
+ return s << "SwNodeIndex (node " << index.GetIndex() << ")";
+};
// SwRange