summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2025-09-26 16:26:04 +0300
committerAhmad Samir <a.samirh78@gmail.com>2025-10-02 01:40:08 +0300
commit15b1bd2c819996321dd8e76f5e7be5a9dc670f58 (patch)
treec53d5e9f51bcd3fdc9a1cc29a9c9c00760821738 /src/corelib/kernel/qobject.cpp
parent0090ad0fa442de91fb87486baa951511eae0c399 (diff)
QMetaObjectPrivate: refactor indexOfMethodRelative()
As requested in code review, use QMetaMethod::MethodType enum instead of QMocConstants::MethodFlags, to specify which type to search for; MethodFlags has many more irrelevant enumerators wrt. this function. Make it a regular function instead of a template; take the type to search for as a parameter. Use a switch-statement instead of ternaries, for better readability. Change-Id: I699b2a146019b9f4cd4fb5441de6cae151ecce78 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions