[Libreoffice-commits] .: svx/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Thu Aug 16 03:55:59 PDT 2012


 svx/source/items/clipfmtitem.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e413403590c3fb68a62db6d34d202e320fd99017
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 16 12:51:21 2012 +0200

    fdo#53061: Work around boost::ptr_vector.insert(..., nullptr) problem
    
    At least with certain versions of Boost and Clang, and when NULL is defined as
    nullptr, compilation failed here.  To me, looks like an error of either Boost or
    Clang; replacing "NULL" with "0" appears to be a good enough workaround.
    (Identified by Jung-uk Kim.)
    
    Change-Id: I702587abfabad6dba55a2b4c65a53e332b4ab048

diff --git a/svx/source/items/clipfmtitem.cxx b/svx/source/items/clipfmtitem.cxx
index 1af4be8..e287966 100644
--- a/svx/source/items/clipfmtitem.cxx
+++ b/svx/source/items/clipfmtitem.cxx
@@ -132,7 +132,7 @@ void SvxClipboardFmtItem::AddClipbrdFormat( sal_uIntPtr nId, sal_uInt16 nPos )
     if( nPos > pImpl->aFmtNms.size() )
         nPos = pImpl->aFmtNms.size();
 
-    pImpl->aFmtNms.insert(pImpl->aFmtNms.begin() + nPos, NULL);
+    pImpl->aFmtNms.insert(pImpl->aFmtNms.begin() + nPos, 0);
     pImpl->aFmtIds.insert( pImpl->aFmtIds.begin()+nPos, nId );
 }
 


More information about the Libreoffice-commits mailing list