@@ -73,16 +73,16 @@ class TreeCountersBase {
73
73
xattrs += factor * other.xattrs ;
74
74
}
75
75
76
- void FillFieldsMap (FieldsMap &map, const std::string &prefix) const {
77
- map[prefix + " regular" ] = ®ular_files;
78
- map[prefix + " symlink" ] = &symlinks;
79
- map[prefix + " dir" ] = &directories;
80
- map[prefix + " nested" ] = &nested_catalogs;
81
- map[prefix + " chunked" ] = &chunked_files;
82
- map[prefix + " chunks" ] = &file_chunks;
83
- map[prefix + " file_size" ] = &file_size;
84
- map[prefix + " chunked_size" ] = &chunked_file_size;
85
- map[prefix + " xattr" ] = &xattrs;
76
+ void FillFieldsMap (const std::string &prefix, FieldsMap *map ) const {
77
+ (* map) [prefix + " regular" ] = ®ular_files;
78
+ (* map) [prefix + " symlink" ] = &symlinks;
79
+ (* map) [prefix + " dir" ] = &directories;
80
+ (* map) [prefix + " nested" ] = &nested_catalogs;
81
+ (* map) [prefix + " chunked" ] = &chunked_files;
82
+ (* map) [prefix + " chunks" ] = &file_chunks;
83
+ (* map) [prefix + " file_size" ] = &file_size;
84
+ (* map) [prefix + " chunked_size" ] = &chunked_file_size;
85
+ (* map) [prefix + " xattr" ] = &xattrs;
86
86
}
87
87
88
88
FieldT regular_files;
@@ -118,7 +118,7 @@ class DeltaCounters : public TreeCountersBase<DeltaCounters_t> {
118
118
friend class Counters ;
119
119
120
120
public:
121
- void PopulateToParent (DeltaCounters & parent) const ;
121
+ void PopulateToParent (DeltaCounters * parent) const ;
122
122
void Increment (const DirectoryEntry &dirent) { ApplyDelta (dirent, 1 ); }
123
123
void Decrement (const DirectoryEntry &dirent) { ApplyDelta (dirent, -1 ); }
124
124
@@ -131,8 +131,8 @@ typedef uint64_t Counters_t;
131
131
class Counters : public TreeCountersBase <Counters_t> {
132
132
public:
133
133
void ApplyDelta (const DeltaCounters &delta);
134
- void AddAsSubtree (DeltaCounters & delta) const ;
135
- void MergeIntoParent (DeltaCounters & parent_delta) const ;
134
+ void AddAsSubtree (DeltaCounters * delta) const ;
135
+ void MergeIntoParent (DeltaCounters * parent_delta) const ;
136
136
Counters_t GetSelfEntries () const ;
137
137
Counters_t GetSubtreeEntries () const ;
138
138
Counters_t GetAllEntries () const ;
0 commit comments