File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,6 @@ struct BucketCache : public Notifiable
372
372
ev.name ? *ev.name : nil,
373
373
uint32_t (ev.type ))
374
374
<< std::endl;
375
- /* TODO: add or remove entry */
376
375
switch (ev.type )
377
376
{
378
377
case EventType::ADD:
Original file line number Diff line number Diff line change 8
8
9
9
namespace file ::listing {
10
10
11
- std::unique_ptr<Notify> Notify::factory (Notifiable* c, std::string& bucket_root)
11
+ std::unique_ptr<Notify> Notify::factory (Notifiable* n, const std::string& bucket_root)
12
12
{
13
13
#ifdef linux
14
- return std::unique_ptr<Notify>(new Inotify (c , bucket_root));
14
+ return std::unique_ptr<Notify>(new Inotify (n , bucket_root));
15
15
#endif /* linux */
16
16
return nullptr ;
17
17
} /* Notify::factory */
Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ namespace file::listing {
61
61
Notifiable* n;
62
62
sf::path rp;
63
63
64
- Notify (Notifiable* n, std::string& bucket_root)
64
+ Notify (Notifiable* n, const std::string& bucket_root)
65
65
: n(n), rp(bucket_root)
66
66
{}
67
67
68
68
friend class Inotify ;
69
69
public:
70
- static std::unique_ptr<Notify> factory (Notifiable* n, std::string& bucket_root);
70
+ static std::unique_ptr<Notify> factory (Notifiable* n, const std::string& bucket_root);
71
71
72
72
virtual int add_watch (const std::string& dname, void * opaque) = 0;
73
73
virtual int remove_watch (const std::string& dname) = 0;
@@ -195,7 +195,7 @@ namespace file::listing {
195
195
}
196
196
} /* ev_loop */
197
197
198
- Inotify (Notifiable* n, std::string& bucket_root)
198
+ Inotify (Notifiable* n, const std::string& bucket_root)
199
199
: Notify(n, bucket_root),
200
200
thrd (&Inotify::ev_loop, this )
201
201
{
You can’t perform that action at this time.
0 commit comments