Skip to content
Commit 910d2872 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix mismatched new[] / delete[] valgrind warning

QScopedPointer by default uses `delete`, even if we used `new []`.
We would have to use the following verbose syntax:

    QScopedPointer<uchar, QScopedPointerArrayDeleter<uchar>> buf(new uchar[...]);

But `std::unique_ptr` can do the right thing by just looking at the template
parameter, so let's use that.
parent b36f24ed
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