From ff626ac76357940b2f0ac5cb243a68ac13df0f8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 18:48:38 +0200 Subject: *: use references instead of pointers --- src/Song.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Song.hxx') diff --git a/src/Song.hxx b/src/Song.hxx index cafa17fd8..32158aedf 100644 --- a/src/Song.hxx +++ b/src/Song.hxx @@ -83,6 +83,10 @@ struct Song { gcc_malloc static Song *LoadFile(const char *path_utf8, Directory *parent); + static Song *LoadFile(const char *path_utf8, Directory &parent) { + return LoadFile(path_utf8, &parent); + } + /** * Replaces the URI of a song object. The given song object * is destroyed, and a newly allocated one is returned. It -- cgit v1.2.3