diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-30 10:56:11 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-30 10:56:11 +0100 |
commit | ac1d5566d30b107fdea934ac704720242ef59a7c (patch) | |
tree | ed46cdc2ebc66612ade9bbac5f41097698cef042 /test/audiocachefiletest.cc | |
parent | aa635eb8da9804488513d1f3d422e4810e611bb8 (diff) | |
parent | 22715c84cc861ba6ce7e9caa5d214bb3f006679d (diff) |
Merge branch 'diskstreaming_review_chaot' into diskstreaming
Diffstat (limited to 'test/audiocachefiletest.cc')
-rw-r--r-- | test/audiocachefiletest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/audiocachefiletest.cc b/test/audiocachefiletest.cc index b7839b7..6f84ba2 100644 --- a/test/audiocachefiletest.cc +++ b/test/audiocachefiletest.cc @@ -39,12 +39,14 @@ public: //void release(const std::string& filename); int getRef(const std::string& filename) { - if(audiofiles.find(filename) == audiofiles.end()) + auto it = audiofiles.find(filename); + + if(it == audiofiles.end()) { return -1; } - return audiofiles[filename]->ref; + return (it->second).ref; } }; |