Use QScopedPointer (RAII) to do not care of the udev resources
authorDenis Shienkov <denis.shienkov@gmail.com>
Mon, 2 Jun 2014 23:38:37 +0000 (23:38 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 7 Jun 2014 15:58:25 +0000 (17:58 +0200)
commit2cde429d3bd3adc2bfc7d268fb64aad97a07e0e1
tree374e5b6fb49eb554b2b93dff05ec8d4d6badb3ca
parent6aa21015ea0a956d8a563dd3b52f4701368b4f2d
Use QScopedPointer (RAII) to do not care of the udev resources

It is a good idea to get rid from the manually releasing of the
allocated udev resources.

Tested on ArchLinux 64 bit with on-board and PL2303 serial ports using
Qt4 and then Qt5.

Change-Id: Ib25e100bea37ad3cc0bee015b7de6d4de762f2cc
Reviewed-by: Peter K├╝mmel <syntheticpp@gmx.net>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
src/serialport/qserialportinfo_unix.cpp