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

Unified Diff: Source/core/clipboard/DataObjectItem.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/DataTransferItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataObjectItem.cpp
diff --git a/Source/core/clipboard/DataObjectItem.cpp b/Source/core/clipboard/DataObjectItem.cpp
index c384eb4fec26bdf3b2b3c96511184ef75b5d3006..2ba2e8cb9b4d23105d958b71b20e2b4f4f9e8027 100644
--- a/Source/core/clipboard/DataObjectItem.cpp
+++ b/Source/core/clipboard/DataObjectItem.cpp
@@ -103,7 +103,7 @@ DataObjectItem::DataObjectItem(Kind kind, const String& type, uint64_t sequenceN
PassRefPtr<Blob> DataObjectItem::getAsFile() const
{
if (kind() != FileKind)
- return 0;
+ return nullptr;
if (m_source == InternalSource) {
if (m_file)
@@ -112,7 +112,7 @@ PassRefPtr<Blob> DataObjectItem::getAsFile() const
// FIXME: This code is currently impossible--we never populate m_sharedBuffer when dragging
// in. At some point though, we may need to support correctly converting a shared buffer
// into a file.
- return 0;
+ return nullptr;
}
ASSERT(m_source == PasteboardSource);
@@ -135,7 +135,7 @@ PassRefPtr<Blob> DataObjectItem::getAsFile() const
return Blob::create(BlobDataHandle::create(blobData.release(), data->size()));
}
- return 0;
+ return nullptr;
}
String DataObjectItem::getAsString() const
« no previous file with comments | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/DataTransferItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698