diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-14 14:46:33 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-07-03 16:01:10 +0000 |
commit | 2b991efc476c7d50ee606dd4ddb7d15777bbfe8e (patch) | |
tree | 129e18eeb8e41c820b5aa095bc4f04613652496c /src/dbus | |
parent | fb046c932f0d1c54a2baf3633de26926c939082b (diff) |
Use QMessageLogger context properly in qglobal.cpp redirects
qt_assert and qt_check_pointer get the function name and line number
from the caller (the functions are called from the Q_ASSERT and
Q_CHECK_PTR macros, respectively), so we don't need to capture the
context from those two functions. Instead, pass the context to
QMessageLogger for proper logging.
I've left the file name and line number in the assertions, for users who
did not add them to their message log pattern, but I've removed from the
almost never used qt_check_pointer function.
Note: how useful is it that we allocate memory in response to failing to
allocate memory?
Change-Id: Ia53158e207a94bf49489fffd14c81b359c5b6537
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/dbus')
0 files changed, 0 insertions, 0 deletions