Commit 5ea2e198 authored by Max Kellermann's avatar Max Kellermann

directory: pass const pointers to inline functions

The inline functions directory_is_empty() and directory_get_path() don't modify the object - pass constant object pointers to them.
parent 313405ed
......@@ -57,13 +57,13 @@ void
directory_free(struct directory *directory);
static inline bool
directory_is_empty(struct directory *directory)
directory_is_empty(const struct directory *directory)
{
return directory->children.nr == 0 && directory->songs.nr == 0;
}
static inline const char *
directory_get_path(struct directory *directory)
directory_get_path(const struct directory *directory)
{
return directory->path;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment