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

Side by Side Diff: Source/web/WebSpeechRecognitionHandle.cpp

Issue 623953002: Avoid some explicit WebSpeechRecognitionHandle() conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy vector element assignments of SpeechRecognitionResults Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool WebSpeechRecognitionHandle::lessThan(const WebSpeechRecognitionHandle& othe r) const 48 bool WebSpeechRecognitionHandle::lessThan(const WebSpeechRecognitionHandle& othe r) const
49 { 49 {
50 return m_private.get() < other.m_private.get(); 50 return m_private.get() < other.m_private.get();
51 } 51 }
52 52
53 WebSpeechRecognitionHandle::WebSpeechRecognitionHandle(SpeechRecognition* speech Recognition) 53 WebSpeechRecognitionHandle::WebSpeechRecognitionHandle(SpeechRecognition* speech Recognition)
54 : m_private(speechRecognition) 54 : m_private(speechRecognition)
55 { 55 {
56 } 56 }
57 57
58 WebSpeechRecognitionHandle& WebSpeechRecognitionHandle::operator=(SpeechRecognit ion* speechRecognition)
59 {
60 m_private = speechRecognition;
61 return *this;
62 }
63
64 WebSpeechRecognitionHandle::operator SpeechRecognition*() const 58 WebSpeechRecognitionHandle::operator SpeechRecognition*() const
65 { 59 {
66 return m_private.get(); 60 return m_private.get();
67 } 61 }
68 62
69 } // namespace blink 63 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698