summaryrefslogtreecommitdiff
path: root/src/audiocachefile.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-01-29 21:09:37 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-01-29 21:09:37 +0100
commit9f9d9f1da1536f7b6103e3eb260d3f5dc573294c (patch)
tree95e50c3f2cd7827c2aa1f9aff3efdb099fd497d4 /src/audiocachefile.cc
parent6f685ae7ac93a04963532c21152fa0491931988b (diff)
Add a comment to clarify.
Diffstat (limited to 'src/audiocachefile.cc')
-rw-r--r--src/audiocachefile.cc1
1 files changed, 1 insertions, 0 deletions
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;
}