diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-09-24 20:02:57 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-10-01 10:32:43 +0200 |
commit | 4687ce06757e75432bde17bf4077e45ce88bb126 (patch) | |
tree | 4bac1a1e869876b74e9f2279b5df636625d645fe /sw/inc/ndhints.hxx | |
parent | d10f6d49b77dcf955629901937d8d5e3a2976a6c (diff) |
Constify dumpAsXml and friends
All these dump functions should never change the dumped objects
so 'const' all of them.
Change-Id: Id83422e3950a73e48feb4708fbd4c251506997e0
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r-- | sw/inc/ndhints.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx index 291ee3434e71..4bfbd1fc3da0 100644 --- a/sw/inc/ndhints.hxx +++ b/sw/inc/ndhints.hxx @@ -117,7 +117,9 @@ public: inline size_t GetStartOf( const SwTxtAttr *pHt ) const; bool Contains( const SwTxtAttr *pHt ) const; - inline SwTxtAttr * GetTextHint( const size_t nIdx ) + inline const SwTxtAttr * GetTextHint( const size_t nIdx ) const + { return GetStart(nIdx); } + inline SwTxtAttr * GetTextHint( const size_t nIdx ) { return GetStart(nIdx); } inline const SwTxtAttr * operator[]( const size_t nIdx ) const { return m_HintStarts[nIdx]; } |