diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:16:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:27 +0100 |
commit | c3dcdeb1d2bccc3785e3675843a5228e183b307f (patch) | |
tree | 857f6a942ba3b535be2baa1b43c5e5bb834aaff5 /hwpfilter/source/solver.cxx | |
parent | 2df257e95e655de7b0f888b033a56cd800d3002e (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
Diffstat (limited to 'hwpfilter/source/solver.cxx')
-rw-r--r-- | hwpfilter/source/solver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hwpfilter/source/solver.cxx b/hwpfilter/source/solver.cxx index 5ee767c168d5..144e11c3858a 100644 --- a/hwpfilter/source/solver.cxx +++ b/hwpfilter/source/solver.cxx @@ -25,7 +25,7 @@ double** mgcLinearSystemD::NewMatrix (int N) { double** A = new double*[N]; if ( !A ) - return 0; + return nullptr; for (int row = 0; row < N; row++) { @@ -35,7 +35,7 @@ double** mgcLinearSystemD::NewMatrix (int N) for (int i = 0; i < row; i++) delete[] A[i]; delete[] A; - return 0; + return nullptr; } for (int col = 0; col < N; col++) A[row][col] = 0; @@ -54,7 +54,7 @@ double* mgcLinearSystemD::NewVector (int N) { double* B = new double[N]; if ( !B ) - return 0; + return nullptr; for (int row = 0; row < N; row++) B[row] = 0; |