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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
index d0606670256ece6416bb0ff1bd1532da8e5c1f24..2fe149e29c06485d9f80e97b790754bf261cc5d3 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
@@ -166,10 +166,10 @@ void FileReaderLoader::cleanup()
// If we get any error, we do not need to keep a buffer around.
if (m_errorCode) {
- m_rawData.clear();
+ m_rawData.reset();
m_stringResult = "";
m_isRawDataConverted = true;
- m_decoder.clear();
+ m_decoder.reset();
}
}
@@ -248,7 +248,7 @@ void FileReaderLoader::didReceiveData(const char* data, unsigned dataLength)
unsigned bytesAppended = m_rawData->append(data, dataLength);
if (!bytesAppended) {
- m_rawData.clear();
+ m_rawData.reset();
m_bytesLoaded = 0;
failed(FileError::NOT_READABLE_ERR);
return;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceLoader.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698