forked from qt-creator/qt-creator
Catch exceptions by const reference.
Change-Id: Ic537fd123478a4f8fe4e54736d444fa64fd62d9c Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -410,7 +410,7 @@ void deviceConnectedCallback(void *refCon, io_iterator_t iterator)
|
||||
kr = IOObjectRelease(usbDevice);
|
||||
}
|
||||
}
|
||||
catch (std::exception &e) {
|
||||
catch (const std::exception &e) {
|
||||
qCWarning(detectLog) << "Exception " << e.what() << " in iosdevice.cpp deviceConnectedCallback";
|
||||
}
|
||||
catch (...) {
|
||||
@@ -449,7 +449,7 @@ void deviceDisconnectedCallback(void *refCon, io_iterator_t iterator)
|
||||
kr = IOObjectRelease(usbDevice);
|
||||
}
|
||||
}
|
||||
catch (std::exception &e) {
|
||||
catch (const std::exception &e) {
|
||||
qCWarning(detectLog) << "Exception " << e.what() << " in iosdevice.cpp deviceDisconnectedCallback";
|
||||
}
|
||||
catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user