diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 14:17:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 09:28:44 +0200 |
commit | 639df4d76d545ca23021f69a9d738a9a92c148cd (patch) | |
tree | 87b20ea1518f6a878102a367c211cb6f93c554fd /avmedia | |
parent | 9dce6f74b1b43293b40217c1163c8d4285251e97 (diff) |
use more std::make_unique
Change-Id: I7d85cbc9105c5e0c4a8d9a69c4ac9d6dfc07eabd
Reviewed-on: https://gerrit.libreoffice.org/70663
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/framegrabber.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx index fb0369d7c8cc..9b6e755f93e7 100644 --- a/avmedia/source/win/framegrabber.cxx +++ b/avmedia/source/win/framegrabber.cxx @@ -173,7 +173,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe SUCCEEDED( pDet->GetBitmapBits( 0, &nSize, nullptr, nWidth, nHeight ) ) && ( nSize > 0 ) ) { - auto pBuffer = std::unique_ptr<char[]>(new char[ nSize ]); + auto pBuffer = std::make_unique<char[]>(nSize); try { |