diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-20 16:55:24 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-23 04:02:14 +0100 |
commit | 310eb66522ff30492e8b3cd86dbafaeb52cdff90 (patch) | |
tree | e9b6fa2c114520c5c6ba88d76ac30387ab7b21f1 /sw/inc/ndindex.hxx | |
parent | 96c7fff36eb2ed21bba604b3c0c376559e14539c (diff) |
inline stream operator and remove object
Change-Id: I9df9a56eca662c6adf0a2cf4ef25a917da8dc609
Diffstat (limited to 'sw/inc/ndindex.hxx')
-rw-r--r-- | sw/inc/ndindex.hxx | 5 |
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 |