diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2024-07-23 20:23:13 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2024-07-24 01:00:48 +0300 |
| commit | f7ff6e2116ece0d1a54b48366a9cb2cda0debc38 (patch) | |
| tree | 42a711bbf1d9fbf93420cd1b0a430997b96f4c81 /src/network/access/qnetworkreplywasmimpl.cpp | |
| parent | 6de2203fb75e034c1a02478daa13e8ddfcea5d75 (diff) | |
QMimeData: add comment about having to use formats() in hasFormat()
I tried optimizing hasFormat() but found that sub-classes, namely
QTextEditMimeData, could be reimplementing formats() but not
hasFormat(), which would break the code if the base class's hasFormat()
doesn't call formats().
So add a comment for the next dev reading this code.
Change-Id: I94b802407d6290be428d9a8c466f2f4686fdda84
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/access/qnetworkreplywasmimpl.cpp')
0 files changed, 0 insertions, 0 deletions
