diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2017-08-21 21:20:22 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2017-08-28 00:14:47 +0300 |
commit | 53b8c0638aae24f857f018c78de03f507a17cbf6 (patch) | |
tree | 8aa379d32e4cf713dc9ec1843d41322dcfa88429 | |
parent | 0d5b0d402fd2c274ca7fcc2ec44e0f765b090480 (diff) |
Don't use make_unique, we don't need initialization here.
-rw-r--r-- | src/Subtitles/RTS.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Subtitles/RTS.h b/src/Subtitles/RTS.h index 87b03f264..07bbf2763 100644 --- a/src/Subtitles/RTS.h +++ b/src/Subtitles/RTS.h @@ -57,7 +57,7 @@ struct CAlphaMask final : std::unique_ptr<BYTE[]> { size_t m_size;
explicit CAlphaMask(size_t size)
- : std::unique_ptr<BYTE[]>(std::make_unique<BYTE[]>(size))
+ : std::unique_ptr<BYTE[]>(DEBUG_NEW BYTE[size])
, m_size(size) {
}
|