[Libreoffice-commits] .: sw/source
Tor Lillqvist
tml at kemper.freedesktop.org
Fri Jun 17 03:58:53 PDT 2011
sw/source/core/doc/docfmt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c2025a7bf7b14a47519f72986caa6705ee16d555
Author: Tor Lillqvist <tlillqvist at novell.com>
Date: Fri Jun 17 13:56:47 2011 +0300
Must use const_reverse_iterator, fixes build error with MSVC
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 8acb8d3..7116ed5 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -443,7 +443,7 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
SfxItemSet aDelSet( GetAttrPool(), aResetableSetRange );
if( !rAttrs.empty() )
{
- for( std::set<sal_uInt16>::reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it )
+ for( std::set<sal_uInt16>::const_reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it )
{
if( POOLATTR_END > *it )
aDelSet.Put( *GetDfltAttr( *it ));
More information about the Libreoffice-commits
mailing list