Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Unified Diff: media/base/mac/videotoolbox_helpers.cc

Issue 2181163002: media: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/cast/sender/audio_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mac/videotoolbox_helpers.cc
diff --git a/media/base/mac/videotoolbox_helpers.cc b/media/base/mac/videotoolbox_helpers.cc
index 20a39504bb8dfcf47605f7c898cf9f77534ed6f7..593a1850eaea64e37944d592699a2d0a9e45cdc8 100644
--- a/media/base/mac/videotoolbox_helpers.cc
+++ b/media/base/mac/videotoolbox_helpers.cc
@@ -35,7 +35,7 @@ base::ScopedCFTypeRef<CFArrayRef> ArrayWithIntegers(const int* v, size_t size) {
base::ScopedCFTypeRef<CFArrayRef> array(CFArrayCreate(
kCFAllocatorDefault, reinterpret_cast<const void**>(&numbers[0]),
numbers.size(), &kCFTypeArrayCallBacks));
- for (auto& number : numbers) {
+ for (auto* number : numbers) {
CFRelease(number);
}
return array;
@@ -49,7 +49,7 @@ base::ScopedCFTypeRef<CFArrayRef> ArrayWithIntegerAndFloat(int int_val,
base::ScopedCFTypeRef<CFArrayRef> array(CFArrayCreate(
kCFAllocatorDefault, reinterpret_cast<const void**>(numbers.data()),
numbers.size(), &kCFTypeArrayCallBacks));
- for (auto& number : numbers)
+ for (auto* number : numbers)
CFRelease(number);
return array;
}
@@ -142,9 +142,9 @@ bool CopySampleBufferToAnnexBBuffer(CoreMediaGlue::CMSampleBufferRef sbuf,
OSStatus status;
// Get the sample buffer's block buffer and format description.
- auto bb = CoreMediaGlue::CMSampleBufferGetDataBuffer(sbuf);
+ auto* bb = CoreMediaGlue::CMSampleBufferGetDataBuffer(sbuf);
DCHECK(bb);
- auto fdesc = CoreMediaGlue::CMSampleBufferGetFormatDescription(sbuf);
+ auto* fdesc = CoreMediaGlue::CMSampleBufferGetFormatDescription(sbuf);
DCHECK(fdesc);
size_t bb_size = CoreMediaGlue::CMBlockBufferGetDataLength(bb);
« no previous file with comments | « no previous file | media/cast/sender/audio_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698