diff options
Diffstat (limited to 'src/audiocachefile.cc')
-rw-r--r-- | src/audiocachefile.cc | 1 |
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; } |