summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-03-03 17:16:10 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-03-05 21:57:21 +0100
commitb955648224929e07b133744742344b9a45ae9c9e (patch)
treee0fe0e1e15319aec82cb52fc3bc430c88f45ff61 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
parent28f56f29bb9b9874c5df41609ef4979d120333a1 (diff)
QDBusError: don't refer to a QT_NAMESPACE'ed get() as ::get()
This code predates the public history. I don't know exactly how this worked before, but I guess it's because the QT_USE_NAMESPACE in our headers. If there's _any_ get() function at the global scope, then name lookup stops there and considers _only_ that function. And if that happens to have a compatible signature, good night. Use unqualified lookup instead. That will find the QT_NAMESPACE one, ignoring other overloads at global scope. And when non-namespaced, will emit an ambiguity error in the presence of another matching get() function at global scope. Task-number: QTBUG-111598 Pick-to: 6.5 6.4 6.2 5.15 Change-Id: Iea141ea543193394ba527b414caf31c1f3a2355b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions