summaryrefslogtreecommitdiff
path: root/sw/inc/edimp.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-01 20:37:40 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-02 00:37:13 +0100
commitd57baa3d5d197c6620078104cca57fd8104012f6 (patch)
tree3a5ef1da481634e0974e71cc59c0cb10096b1f94 /sw/inc/edimp.hxx
parent7902e30aab21968648d53356d9d3533bbac17172 (diff)
const iterators
Change-Id: I129b51c2e736e04287141c0eae8c212c179a3475
Diffstat (limited to 'sw/inc/edimp.hxx')
-rw-r--r--sw/inc/edimp.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/edimp.hxx b/sw/inc/edimp.hxx
index a6dbcaf1eff0..5d2e81371530 100644
--- a/sw/inc/edimp.hxx
+++ b/sw/inc/edimp.hxx
@@ -34,7 +34,9 @@ class SwNodeIndex;
BOOST_FOREACH(SwPaM& __r, std::make_pair(static_cast< SwPaM* >(pCURSH)->beginRing(), static_cast< SwPaM* >(pCURSH)->endRing())) \
{
-#define FOREACHPAM_START_CONST(pCURSH) FOREACHPAM_START(pCURSH)
+#define FOREACHPAM_START_CONST(pCURSH) \
+ BOOST_FOREACH(SwPaM& __r, std::make_pair(pCURSH->beginRing(), pCURSH->endRing())) \
+ {
#define FOREACHPAM_END() }
#define FOREACHPAM_END_CONST() }