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

Side by Side Diff: Source/core/xml/XPathParser.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 registerString(yylval->str); 444 registerString(yylval->str);
445 break; 445 break;
446 } 446 }
447 447
448 return tok.type; 448 return tok.type;
449 } 449 }
450 450
451 bool Parser::expandQName(const String& qName, String& localName, String& namespa ceURI) 451 bool Parser::expandQName(const String& qName, String& localName, String& namespa ceURI)
452 { 452 {
453 size_t colon = qName.find(':'); 453 size_t colon = qName.find(':');
454 if (colon != notFound) { 454 if (colon != kNotFound) {
455 if (!m_resolver) 455 if (!m_resolver)
456 return false; 456 return false;
457 namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon)); 457 namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon));
458 if (namespaceURI.isNull()) 458 if (namespaceURI.isNull())
459 return false; 459 return false;
460 localName = qName.substring(colon + 1); 460 localName = qName.substring(colon + 1);
461 } else 461 } else
462 localName = qName; 462 localName = qName;
463 463
464 return true; 464 return true;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 { 620 {
621 if (t == 0) 621 if (t == 0)
622 return; 622 return;
623 623
624 ASSERT(m_nodeTests.contains(t)); 624 ASSERT(m_nodeTests.contains(t));
625 625
626 m_nodeTests.remove(t); 626 m_nodeTests.remove(t);
627 delete t; 627 delete t;
628 } 628 }
629 629
OLDNEW
« no previous file with comments | « Source/core/xml/XPathFunctions.cpp ('k') | Source/modules/device_orientation/DeviceSensorEventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698