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

Stephan Bergmann sbergman at redhat.com
Wed Mar 30 11:16:23 UTC 2016


 basegfx/source/inc/hommatrixtemplate.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 06895bd2c785d79dd00261ded31def10b5a7157e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 30 13:15:55 2016 +0200

    loplugin:nullptr
    
    Change-Id: I7f6d030317fc7910e69c742b3160b0156e9f9200

diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx
index ec527d7..77e2130 100644
--- a/basegfx/source/inc/hommatrixtemplate.hxx
+++ b/basegfx/source/inc/hommatrixtemplate.hxx
@@ -101,13 +101,13 @@ namespace basegfx
 
                 // reset last line, it equals default
                 delete const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine;
-                const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine = 0L;
+                const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine = nullptr;
 
                 return true;
             }
 
             ImplHomMatrixTemplate()
-                :   mpLine(0L)
+                :   mpLine(nullptr)
             {
                 // complete initialization with identity matrix, all lines
                 // were initialized with a trailing 1 followed by 0's.
@@ -119,7 +119,7 @@ namespace basegfx
             }
 
             ImplHomMatrixTemplate(const ImplHomMatrixTemplate& rToBeCopied)
-                :   mpLine(0L)
+                :   mpLine(nullptr)
             {
                 // complete initialization using copy
                 for(sal_uInt16 a(0); a < (RowSize - 1); a++)
@@ -174,7 +174,7 @@ namespace basegfx
 
                     if(!::basegfx::fTools::equal(fDefault, rValue))
                     {
-                        mpLine = new ImplMatLine< RowSize >((RowSize - 1), 0L);
+                        mpLine = new ImplMatLine< RowSize >((RowSize - 1), nullptr);
                         mpLine->set(nColumn, rValue);
                     }
                 }


More information about the Libreoffice-commits mailing list