]> git.sur5r.net Git - bacula/bacula/commitdiff
prohibe copy and assignment in Bvfs module
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 30 Aug 2009 20:19:57 +0000 (22:19 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 30 Aug 2009 20:19:57 +0000 (22:19 +0200)
bacula/src/cats/bvfs.c
bacula/src/cats/bvfs.h
bacula/technotes

index c27ab50fceedfe5ace7d25a88e1294c912dceec7..0be85604cd506fe73e150572712cfebac7950d6c 100644 (file)
@@ -130,6 +130,9 @@ public:
       free(cache_ppathid);
       free(nodes);
    }
+private:
+   pathid_cache(const pathid_cache &); /* prohibit pass by value */
+   pathid_cache &operator= (const pathid_cache &);/* prohibit class assignment*/
 } ;
 
 /* Return the parent_dir with the trailing /  (update the given string)
index 9abe7c485e7caf1f1ac24193006d8ba5097faf76..69a4a916dc4ebed1b395b766245ccabc1289c9a6 100644 (file)
@@ -151,7 +151,10 @@ public:
    /* for internal use */
    int _handle_path(void *, int, char **);
    
-private:   
+private:
+   Bvfs(const Bvfs &);               /* prohibit pass by value */
+   Bvfs & operator = (const Bvfs &); /* prohibit class assignment */
+
    JCR *jcr;
    B_DB *db;
    POOLMEM *jobids;
index 973821347148dcb4f2bd0bccc5cc9b9fa3e2b86d..2c143b0ad7b2fa172c40997380d6ee3157bb5534 100644 (file)
@@ -2,6 +2,8 @@
           
 General:
 
+30Aug09
+ebl  Prohibe copy and assignment in Bvfs.
 28Aug09
 kes  Fix bug #1357 Verify jobs fail when job has zero files
 26Aug09