[Libreoffice-commits] core.git: svl/source

Stephan Bergmann sbergman at redhat.com
Tue Apr 5 10:41:01 UTC 2016


 svl/source/items/poolitem.cxx |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit f636b1cdd48a8a699433da38068907845b9bf18a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 5 12:40:34 2016 +0200

    loplugin:nullptr
    
    Change-Id: Iabc4df52491adff974de4656f626ab19848dd3f0

diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index 90f5b73..4c3bb34 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -46,27 +46,27 @@ SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich)
     if ( pw1 && nItemCount>=10000 )
     {
         SAL_INFO( "svl", pw1 );
-        pw1 = NULL;
+        pw1 = nullptr;
     }
     if ( pw2 && nItemCount>=100000 )
     {
         SAL_INFO( "svl", pw2 );
-        pw2 = NULL;
+        pw2 = nullptr;
     }
     if ( pw3 && nItemCount>=1000000 )
     {
         SAL_INFO( "svl", pw3 );
-        pw3 = NULL;
+        pw3 = nullptr;
     }
     if ( pw4 && nItemCount>=5000000 )
     {
         SAL_INFO( "svl", pw4 );
-        pw4 = NULL;
+        pw4 = nullptr;
     }
     if ( pw5 && nItemCount>=10000000 )
     {
         SAL_INFO( "svl", pw5 );
-        pw5 = NULL;
+        pw5 = nullptr;
     }
 #endif
 }
@@ -82,27 +82,27 @@ SfxPoolItem::SfxPoolItem( const SfxPoolItem& rCpy )
     if ( pw1 && nItemCount>=10000 )
     {
         SAL_INFO( "svl", pw1 );
-        pw1 = NULL;
+        pw1 = nullptr;
     }
     if ( pw2 && nItemCount>=100000 )
     {
         SAL_INFO( "svl", pw2 );
-        pw2 = NULL;
+        pw2 = nullptr;
     }
     if ( pw3 && nItemCount>=1000000 )
     {
         SAL_INFO( "svl", pw3 );
-        pw3 = NULL;
+        pw3 = nullptr;
     }
     if ( pw4 && nItemCount>=5000000 )
     {
         SAL_INFO( "svl", pw4 );
-        pw4 = NULL;
+        pw4 = nullptr;
     }
     if ( pw5 && nItemCount>=10000000 )
     {
         SAL_INFO( "svl", pw5 );
-        pw5 = NULL;
+        pw5 = nullptr;
     }
 #endif
 }


More information about the Libreoffice-commits mailing list