Kaydet (Commit) 06895bd2 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr

Change-Id: I7f6d030317fc7910e69c742b3160b0156e9f9200
üst 9feacaf1
...@@ -101,13 +101,13 @@ namespace basegfx ...@@ -101,13 +101,13 @@ namespace basegfx
// reset last line, it equals default // reset last line, it equals default
delete const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine; delete const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine;
const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine = 0L; const_cast<ImplHomMatrixTemplate< RowSize >*>(this)->mpLine = nullptr;
return true; return true;
} }
ImplHomMatrixTemplate() ImplHomMatrixTemplate()
: mpLine(0L) : mpLine(nullptr)
{ {
// complete initialization with identity matrix, all lines // complete initialization with identity matrix, all lines
// were initialized with a trailing 1 followed by 0's. // were initialized with a trailing 1 followed by 0's.
...@@ -119,7 +119,7 @@ namespace basegfx ...@@ -119,7 +119,7 @@ namespace basegfx
} }
ImplHomMatrixTemplate(const ImplHomMatrixTemplate& rToBeCopied) ImplHomMatrixTemplate(const ImplHomMatrixTemplate& rToBeCopied)
: mpLine(0L) : mpLine(nullptr)
{ {
// complete initialization using copy // complete initialization using copy
for(sal_uInt16 a(0); a < (RowSize - 1); a++) for(sal_uInt16 a(0); a < (RowSize - 1); a++)
...@@ -174,7 +174,7 @@ namespace basegfx ...@@ -174,7 +174,7 @@ namespace basegfx
if(!::basegfx::fTools::equal(fDefault, rValue)) if(!::basegfx::fTools::equal(fDefault, rValue))
{ {
mpLine = new ImplMatLine< RowSize >((RowSize - 1), 0L); mpLine = new ImplMatLine< RowSize >((RowSize - 1), nullptr);
mpLine->set(nColumn, rValue); mpLine->set(nColumn, rValue);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment