]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- catch by reference
authorArvin Schnell <aschnell@suse.de>
Thu, 18 Apr 2013 13:42:02 +0000 (15:42 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 18 Apr 2013 13:42:02 +0000 (15:42 +0200)
snapper/Compare.cc
snapper/File.cc

index 4f6999ddb0fd918d2b64d421ce82280e49cc0e05..9629579bb9b4db818bf0f75928ca668cfc1e5c51 100644 (file)
@@ -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;
index 5f3a2214cfcf6de89591f24c705497700a68214b..fb3c621c007672ebdfc08b4e9f52711b5359f71a 100644 (file)
@@ -549,7 +549,8 @@ namespace snapper
 
             ret_val = xa_mod.serializeTo(getAbsolutePath(LOC_SYSTEM));
         }
-        catch (XAttributesException xae) {
+       catch (const XAttributesException& e)
+       {
             ret_val = false;
         }