diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-15 09:43:01 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-10-06 16:39:01 +0000 |
commit | 0f21e0bc198af106421b02275a053c82a2eded3d (patch) | |
tree | e515a6adabdca3278827ff2327661009e85bb393 /LICENSE.PREVIEW.COMMERCIAL | |
parent | 0bf0c3e184448e91a7ddbd20b03997538ae19f41 (diff) |
QDBusDemarshaller: use RAII in duplicate()
QtDBus is compiled with exceptions disabled, but checkers
don't know that, and it's not 100% certain it will stay
that way until eternity.
So do the simple change and hold the new'ed pointer in a
QScopedPointer until handing it off to create().
Coverity-Id: 154477
Change-Id: I91a763ca4e93585c97cb9e794312b53046971161
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'LICENSE.PREVIEW.COMMERCIAL')
0 files changed, 0 insertions, 0 deletions