qt5base-lts/util
Edward Welbourne e93af7dafd Turn a next-node function into an iterator over nodes
This simplifies a duplicated iteration pattern in the calling code.
It also frees the first-node function to raise an Error (which the
iterator now catches) if it finds no node, where it used to return
False (instead of a node, so other code using it would raise confusing
errors from trying to use False as a node, where now it'll get a clear
Error about a missing node).  There were also no callers passing an
empty name, so the test for matching nodes (here moved to its own
short function) didn't need to handle that as a special case.

Change-Id: Ife6cad8943cf5dc2c6ed68429d4a217cb9bea446
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-06-09 08:24:33 +00:00
..
accessibilityinspector Updated license headers 2016-01-21 18:55:18 +00:00
aglfn Updated license headers 2016-01-21 18:55:18 +00:00
corelib/qurl-generateTLDs Updated license headers 2016-01-21 18:55:18 +00:00
edid EDID parser library 2017-05-02 09:11:56 +00:00
glgen Unify license header usage. 2016-03-29 10:20:03 +00:00
harfbuzz Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
includemocs QtCore: include mocs 2017-05-05 03:03:30 +00:00
integrity Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
lexgen Handle indirect sibling selector 2016-07-27 20:18:02 +00:00
local_database Turn a next-node function into an iterator over nodes 2017-06-09 08:24:33 +00:00
plugintest Updated license headers 2016-01-21 18:55:18 +00:00
unicode Updated license headers 2016-01-21 18:55:18 +00:00
xkbdatagen Updated license headers 2016-01-21 18:55:18 +00:00