summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-05-04 05:41:31 -0700
committerJoseph Powers <jpowers27@cox.net>2011-05-04 05:42:32 -0700
commitb261e75b9bb41efef3510554160e451b03d90598 (patch)
treeb36c642fb01aada56c66e51cf827d53c3386a825 /oox/source
parent8fa1a0874765ea7db57e496f1d92731b9ab09280 (diff)
Convert const_reverse_iterator into reverse_iterator
For some reason on Mac OS X, both "!= rend()" and "< rend()" both complain about the operator not existing.
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/core/contexthandler2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx
index cf588138c48e..fc79afce76e2 100644
--- a/oox/source/core/contexthandler2.cxx
+++ b/oox/source/core/contexthandler2.cxx
@@ -81,8 +81,8 @@ sal_Int32 ContextHandler2Helper::getCurrentElementWithMce() const
sal_Int32 ContextHandler2Helper::getCurrentElement() const
{
- for ( ContextStack::const_reverse_iterator It = mxContextStack->rbegin();
- It != mxContextStack->rend(); It++ )
+ for ( ContextStack::reverse_iterator It = mxContextStack->rbegin();
+ It != mxContextStack->rend(); ++It )
if( getNamespace( It->mnElement ) != NMSP_mce )
return It->mnElement;
return XML_ROOT_CONTEXT;