Reapplied clang-tidy filters

- modernize-use-nullptr
- modernize-redundant-void-arg
- readability-simplify-boolean-expr
- misc-redundant-expression
- readability-redundant-control-flow
- readability-avoid-const-params-in-decls
This commit is contained in:
Flössie
2016-10-18 18:16:05 +02:00
parent 0bbc84b2af
commit 730c03785d
19 changed files with 198 additions and 198 deletions

View File

@@ -592,7 +592,7 @@ public:
PlanarPtr<T> g;
PlanarPtr<T> b;
PlanarRGBData() : rowstride(0), planestride(0), data (NULL) {}
PlanarRGBData() : rowstride(0), planestride(0), data (nullptr) {}
PlanarRGBData(int w, int h) : rowstride(0), planestride(0), data (nullptr)
{
allocate(w, h);
@@ -711,7 +711,7 @@ public:
/** Copy the data to another PlanarRGBData */
void copyData(PlanarRGBData<T> *dest)
{
assert (dest != NULL);
assert (dest != nullptr);
// Make sure that the size is the same, reallocate if necessary
dest->allocate(width, height);
@@ -1231,7 +1231,7 @@ public:
ChunkyPtr<T> g;
ChunkyPtr<T> b;
ChunkyRGBData() : data (NULL) {}
ChunkyRGBData() : data (nullptr) {}
ChunkyRGBData(int w, int h) : data (nullptr)
{
allocate(w, h);