[Libreoffice-commits] .: oox/source
Joseph Powers
jpowers at kemper.freedesktop.org
Wed May 4 05:43:02 PDT 2011
oox/source/core/contexthandler2.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 66e7ec8b69b6b38cba42aebd33226bd6eef37e04
Author: Joseph Powers <jpowers27 at cox.net>
Date: Wed May 4 05:41:31 2011 -0700
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.
diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx
index d3f06a7..fc79afc 100644
--- a/oox/source/core/contexthandler2.cxx
+++ b/oox/source/core/contexthandler2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -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;
More information about the Libreoffice-commits
mailing list