summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-30 10:56:11 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-30 10:56:11 +0100
commitac1d5566d30b107fdea934ac704720242ef59a7c (patch)
treeed46cdc2ebc66612ade9bbac5f41097698cef042 /test
parentaa635eb8da9804488513d1f3d422e4810e611bb8 (diff)
parent22715c84cc861ba6ce7e9caa5d214bb3f006679d (diff)
Merge branch 'diskstreaming_review_chaot' into diskstreaming
Diffstat (limited to 'test')
-rw-r--r--test/audiocachefiletest.cc6
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;
}
};