[gexiv2] Catch exception by reference
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gexiv2] Catch exception by reference
- Date: Tue, 24 May 2016 18:32:28 +0000 (UTC)
commit 841e23c6f1f18f6404140688abc5eec3afb61a21
Author: Jens Georg <mail jensge org>
Date: Tue May 24 20:27:04 2016 +0200
Catch exception by reference
Found by Coverity (CID: 112500)
Signed-off-by: Jens Georg <mail jensge org>
gexiv2/gexiv2-metadata.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gexiv2/gexiv2-metadata.cpp b/gexiv2/gexiv2-metadata.cpp
index f376dac..3d3c7fb 100644
--- a/gexiv2/gexiv2-metadata.cpp
+++ b/gexiv2/gexiv2-metadata.cpp
@@ -312,7 +312,7 @@ gboolean gexiv2_metadata_save_file (GExiv2Metadata *self, const gchar *path, GEr
try {
return gexiv2_metadata_save_internal (self, Exiv2::ImageFactory::open (path), error);
- } catch (Exiv2::Error e) {
+ } catch (Exiv2::Error &e) {
g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), e.what ());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]