aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosdevice.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2014-11-28 11:15:37 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2014-11-28 12:01:41 +0100
commit6595c0a9d1a140d3d647188efe5c1b1f78182ec7 (patch)
tree07bdc65ec0135ac6d4869ca1b3e1959c2db2c31e /src/plugins/ios/iosdevice.cpp
parentee45dc6db502545676121ee100cfb3041fc4de83 (diff)
Catch exceptions by const reference.
Change-Id: Ic537fd123478a4f8fe4e54736d444fa64fd62d9c Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/ios/iosdevice.cpp')
-rw-r--r--src/plugins/ios/iosdevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ios/iosdevice.cpp b/src/plugins/ios/iosdevice.cpp
index 59667f2d3b..a6d0629525 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 (...) {