diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-01 19:01:26 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-02 00:37:02 +0100 |
commit | 66fc18538b544d62bc51f2fc485cf997433ff990 (patch) | |
tree | f206e350a15415be08efdce759a3a08854e809e2 /sw/inc/edimp.hxx | |
parent | ef5051b59270b324968cb91304fb25f622b80329 (diff) |
use new typesafer implementation
Change-Id: I2228b2d421987c71e9738e32d138eccab02ea1db
Diffstat (limited to 'sw/inc/edimp.hxx')
-rw-r--r-- | sw/inc/edimp.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/inc/edimp.hxx b/sw/inc/edimp.hxx index b3240b981c03..a6dbcaf1eff0 100644 --- a/sw/inc/edimp.hxx +++ b/sw/inc/edimp.hxx @@ -31,12 +31,10 @@ class SwNodeIndex; #define PCURCRSR (static_cast<SwPaM *>(&__r)) #define FOREACHPAM_START(pCURSH) \ - BOOST_FOREACH(Ring& __r, std::make_pair(static_cast<Ring*>(pCURSH)->beginRing(), static_cast<Ring*>(pCURSH)->endRing())) \ + BOOST_FOREACH(SwPaM& __r, std::make_pair(static_cast< SwPaM* >(pCURSH)->beginRing(), static_cast< SwPaM* >(pCURSH)->endRing())) \ { -#define FOREACHPAM_START_CONST(pCURSH) \ - BOOST_FOREACH(Ring& __r, std::make_pair(const_cast<Ring*>(static_cast<const Ring*>(pCURSH))->beginRing(), const_cast<Ring*>(static_cast<const Ring*>(pCURSH))->endRing())) \ - { +#define FOREACHPAM_START_CONST(pCURSH) FOREACHPAM_START(pCURSH) #define FOREACHPAM_END() } #define FOREACHPAM_END_CONST() } |