diff options
author | Christian Kandeler <[email protected]> | 2014-11-28 11:15:37 +0100 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2014-11-28 12:01:41 +0100 |
commit | 6595c0a9d1a140d3d647188efe5c1b1f78182ec7 (patch) | |
tree | 07bdc65ec0135ac6d4869ca1b3e1959c2db2c31e /src/plugins/ios/iosdevice.cpp | |
parent | ee45dc6db502545676121ee100cfb3041fc4de83 (diff) |
Catch exceptions by const reference.
Change-Id: Ic537fd123478a4f8fe4e54736d444fa64fd62d9c
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosdevice.cpp')
-rw-r--r-- | src/plugins/ios/iosdevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ios/iosdevice.cpp b/src/plugins/ios/iosdevice.cpp index 59667f2d3b7..a6d06295252 100644 --- a/src/plugins/ios/iosdevice.cpp +++ b/src/plugins/ios/iosdevice.cpp @@ -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 (...) { |