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

Unified Diff: Source/core/xml/XPathResult.cpp

Issue 722893002: Use "unsigned" rather than "unsigned long" for C++ code interacting with WebIDL's "unsigned long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/xml/XPathResult.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathResult.cpp
diff --git a/Source/core/xml/XPathResult.cpp b/Source/core/xml/XPathResult.cpp
index 2dcc058f1ec4579ef1599071ab6b3501f0e6d1f8..689d87270a6d246c18a73b785c848e078101875b 100644
--- a/Source/core/xml/XPathResult.cpp
+++ b/Source/core/xml/XPathResult.cpp
@@ -173,7 +173,7 @@ bool XPathResult::invalidIteratorState() const
return m_document->domTreeVersion() != m_domTreeVersion;
}
-unsigned long XPathResult::snapshotLength(ExceptionState& exceptionState) const
+unsigned XPathResult::snapshotLength(ExceptionState& exceptionState) const
{
if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) {
exceptionState.throwTypeError("The result type is not a snapshot.");
@@ -205,7 +205,7 @@ Node* XPathResult::iterateNext(ExceptionState& exceptionState)
return node;
}
-Node* XPathResult::snapshotItem(unsigned long index, ExceptionState& exceptionState)
+Node* XPathResult::snapshotItem(unsigned index, ExceptionState& exceptionState)
{
if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) {
exceptionState.throwTypeError("The result type is not a snapshot.");
« no previous file with comments | « Source/core/xml/XPathResult.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698