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

Unified Diff: chrome/browser/speech/tts_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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
Index: chrome/browser/speech/tts_win.cc
diff --git a/chrome/browser/speech/tts_win.cc b/chrome/browser/speech/tts_win.cc
index 828a5e114a31de1f5d8f1abee1f357af7216df4d..d2d5153f8d312735e43a42b9c57c10c447173e98 100644
--- a/chrome/browser/speech/tts_win.cc
+++ b/chrome/browser/speech/tts_win.cc
@@ -191,7 +191,8 @@ void TtsPlatformImplWin::GetVoices(
std::vector<VoiceData>* out_voices) {
base::win::ScopedComPtr<IEnumSpObjectTokens> voice_tokens;
unsigned long voice_count;
- if (S_OK != SpEnumTokens(SPCAT_VOICES, NULL, NULL, voice_tokens.Receive()))
+ if (S_OK !=
+ SpEnumTokens(SPCAT_VOICES, NULL, NULL, voice_tokens.GetAddressOf()))
return;
if (S_OK != voice_tokens->GetCount(&voice_count))
return;
@@ -200,7 +201,7 @@ void TtsPlatformImplWin::GetVoices(
VoiceData voice;
base::win::ScopedComPtr<ISpObjectToken> voice_token;
- if (S_OK != voice_tokens->Next(1, voice_token.Receive(), NULL))
+ if (S_OK != voice_tokens->Next(1, voice_token.GetAddressOf(), NULL))
return;
base::win::ScopedCoMem<WCHAR> description;
@@ -209,7 +210,7 @@ void TtsPlatformImplWin::GetVoices(
voice.name = base::WideToUTF8(description.get());
base::win::ScopedComPtr<ISpDataKey> attributes;
- if (S_OK != voice_token->OpenKey(kAttributesKey, attributes.Receive()))
+ if (S_OK != voice_token->OpenKey(kAttributesKey, attributes.GetAddressOf()))
continue;
base::win::ScopedCoMem<WCHAR> gender;
@@ -289,14 +290,15 @@ void TtsPlatformImplWin::SetVoiceFromName(const std::string& name) {
base::win::ScopedComPtr<IEnumSpObjectTokens> voice_tokens;
unsigned long voice_count;
- if (S_OK != SpEnumTokens(SPCAT_VOICES, NULL, NULL, voice_tokens.Receive()))
+ if (S_OK !=
+ SpEnumTokens(SPCAT_VOICES, NULL, NULL, voice_tokens.GetAddressOf()))
return;
if (S_OK != voice_tokens->GetCount(&voice_count))
return;
for (unsigned i = 0; i < voice_count; i++) {
base::win::ScopedComPtr<ISpObjectToken> voice_token;
- if (S_OK != voice_tokens->Next(1, voice_token.Receive(), NULL))
+ if (S_OK != voice_tokens->Next(1, voice_token.GetAddressOf(), NULL))
return;
base::win::ScopedCoMem<WCHAR> description;

Powered by Google App Engine
This is Rietveld 408576698