From 9f9d9f1da1536f7b6103e3eb260d3f5dc573294c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 29 Jan 2016 21:09:37 +0100 Subject: Add a comment to clarify. --- src/audiocachefile.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/audiocachefile.cc b/src/audiocachefile.cc index e9ed322..7b05bfc 100644 --- a/src/audiocachefile.cc +++ b/src/audiocachefile.cc @@ -133,6 +133,7 @@ AudioCacheFile& AudioCacheFiles::getFile(const std::string& filename) auto it = audiofiles.find(filename); if(it == audiofiles.end()) { + // Construct a new AudioCacheFile in place. The in place construction is relevant. it = audiofiles.emplace(std::piecewise_construct, std::make_tuple(filename), std::make_tuple(filename, std::ref(read_buffer))).first; } -- cgit v1.2.3