diff options
author | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:13:59 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:13:59 +0100 |
commit | 1abef5bf64a7f3b5799fc597a4e486c45ace758f (patch) | |
tree | d14d3c5adfaa6545ff81bec7ff01112656c8d5a4 /sw/inc | |
parent | b6c89a6480a65ed3f0670bb381bb0519243c044a (diff) |
undoapi: SwNodes: remove obsolete operator[](SwNodeIndex&)
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndarr.hxx | 4 | ||||
-rw-r--r-- | sw/inc/ndindex.hxx | 19 |
2 files changed, 5 insertions, 18 deletions
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx index a60529037758..6fc7199404fb 100644 --- a/sw/inc/ndarr.hxx +++ b/sw/inc/ndarr.hxx @@ -145,10 +145,6 @@ public: SwNodePtr operator[]( ULONG n ) const { return (SwNodePtr)BigPtrArray::operator[] ( n ); } -//JP 29.09.97: impl. steht im ndindex.hxx - sollte moeglichst bald auf die -// neue Schnittstelle angepasst werden - inline SwNodePtr operator[]( const SwNodeIndex& rIdx ) const; - ULONG Count() const { return BigPtrArray::Count(); } void ForEach( FnForEach_SwNodes fnForEach, void* pArgs = 0 ) { diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx index 3c3a71dd8641..d3969da42f03 100644 --- a/sw/inc/ndindex.hxx +++ b/sw/inc/ndindex.hxx @@ -24,14 +24,15 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#ifndef _NDINDEX_HXX -#define _NDINDEX_HXX +#ifndef SW_NDINDEX_HXX +#define SW_NDINDEX_HXX #include <limits.h> + #include <tools/solar.h> -#include "node.hxx" -#include "ndarr.hxx" +#include <node.hxx> + class SwNode; class SwNodes; @@ -239,14 +240,4 @@ inline SwNodeIndex& SwNodeIndex::operator=( ULONG nWert ) return *this; } - - -//JP 29.09.97: impl. steht im ndindex.hxx - sollte moeglichst bald auf die -// neue Schnittstelle angepasst werden -inline SwNode* SwNodes::operator[]( const SwNodeIndex& rIdx ) const -{ - return &rIdx.GetNode(); -} - - #endif |