summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/tds
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-04 15:54:03 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-11 12:28:49 +0200
commite4e3be75014dcd34f480811c9d423b1d2123a395 (patch)
tree04687a3e4c75e6cd78894a78e5b411655b32bc43 /src/plugins/sqldrivers/tds
parentaa3540b7be3dd0f5a96de1df5c4771d789127204 (diff)
macOS: Simplify reflection delegate handling in QCocoaApplicationDelegate
Sending a message to a nil object returns nil, so there's no reason to check the delegate before calling respondsToSelector, and we can use the implicit _cmd argument to pass along the selector for the method we're in. For applicationShouldTerminate, if there's a reflection delegate but it doesn't answer to applicationShouldTerminate it makes no sense to skip our own logic. Change-Id: Iafcd883a5c8cec1b35d2f95238de55eff060d71f Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/tds')
0 files changed, 0 insertions, 0 deletions