Chromium Code Reviews| Index: Source/core/clipboard/DataObject.cpp |
| diff --git a/Source/core/clipboard/DataObject.cpp b/Source/core/clipboard/DataObject.cpp |
| index 7edeaec622a32f44b9aa247d61bd226c5ba91968..cfa9b2904466fd4c5bff5d901039ff0c5741cfa7 100644 |
| --- a/Source/core/clipboard/DataObject.cpp |
| +++ b/Source/core/clipboard/DataObject.cpp |
| @@ -49,10 +49,10 @@ PassRefPtrWillBeRawPtr<DataObject> DataObject::createFromPasteboard(PasteMode pa |
| ListHashSet<String> types; |
| for (size_t i = 0; i < webTypes.size(); ++i) |
| types.add(webTypes[i]); |
| - for (ListHashSet<String>::const_iterator it = types.begin(); it != types.end(); ++it) { |
| - if (pasteMode == PlainTextOnly && *it != mimeTypeTextPlain) |
| + for (const auto& it : types) { |
|
Julien - ping for review
2014/12/16 16:37:21
s/it/moreMeaningFullVariableName/ :(
zhaoze.zhou
2014/12/16 19:47:35
Done.
|
| + if (pasteMode == PlainTextOnly && it != mimeTypeTextPlain) |
| continue; |
| - dataObject->m_itemList.append(DataObjectItem::createFromPasteboard(*it, sequenceNumber)); |
| + dataObject->m_itemList.append(DataObjectItem::createFromPasteboard(it, sequenceNumber)); |
| } |
| return dataObject.release(); |
| } |