Author: post
Date: 2012-01-12 18:47:04 +0100 (Thu, 12 Jan 2012)
New Revision: 4094
Modified:
trunk/plugins/load-rawspeed/rawstudio-plugin-api.cpp
Log:
Use catch by reference.
Modified: trunk/plugins/load-rawspeed/rawstudio-plugin-api.cpp
===================================================================
--- trunk/plugins/load-rawspeed/rawstudio-plugin-api.cpp 2012-01-05
21:26:39 UTC (rev 4093)
+++ trunk/plugins/load-rawspeed/rawstudio-plugin-api.cpp 2012-01-12
17:47:04 UTC (rev 4094)
@@ -49,7 +49,7 @@
try {
c = new CameraMetaData(path);
- } catch (CameraMetadataException e) {
+ } catch (CameraMetadataException &e) {
g_warning("RawSpeed: Could not open camera metadata
information.\n%s\nRawSpeed will not be used!", e.what());
return rs_filter_response_new();
}
@@ -72,7 +72,7 @@
m = f.readFile();
rs_io_unlock();
}
- catch (FileIOException e)
+ catch (FileIOException &e)
{
rs_io_unlock();
printf("RawSpeed: File IO Exception: %s\n", e.what());
@@ -162,16 +162,16 @@
}
}
}
- catch (RawDecoderException e)
+ catch (RawDecoderException &e)
{
g_warning("RawSpeed: RawDecoderException: %s",
e.what());
}
}
- catch (IOException e)
+ catch (IOException &e)
{
g_warning("RawSpeed: IOException: %s", e.what());
}
- catch (FileIOException e)
+ catch (FileIOException &e)
{
g_warning("RawSpeed: File IO Exception: %s", e.what());
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit