From: Arvin Schnell Date: Thu, 18 Apr 2013 13:42:02 +0000 (+0200) Subject: - catch by reference X-Git-Tag: v0.1.3~15 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=12584fa1d111eace20153cce5205da7fefc93ea8;p=thirdparty%2Fsnapper.git - catch by reference --- diff --git a/snapper/Compare.cc b/snapper/Compare.cc index 4f6999dd..9629579b 100644 --- a/snapper/Compare.cc +++ b/snapper/Compare.cc @@ -480,7 +480,7 @@ namespace snapper XAttributes xa(file1.fullname(true)), xb(file2.fullname(true)); retval = (xa == xb); } - catch (XAttributesException xae) + catch (const XAttributesException& e) { y2err("extended attributes compare failed"); retval = false; diff --git a/snapper/File.cc b/snapper/File.cc index 5f3a2214..fb3c621c 100644 --- a/snapper/File.cc +++ b/snapper/File.cc @@ -549,7 +549,8 @@ namespace snapper ret_val = xa_mod.serializeTo(getAbsolutePath(LOC_SYSTEM)); } - catch (XAttributesException xae) { + catch (const XAttributesException& e) + { ret_val = false; }