summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-01-29 20:59:43 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-01-29 20:59:43 +0100
commit6f685ae7ac93a04963532c21152fa0491931988b (patch)
treed9bceb5f0410b60e3ffbd79de60be47c7ea29bb7 /test
parent9ebd9aa0c3429f896e6c41f279b570ba36aec674 (diff)
Remove pointer from audiofiles map.
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;
}
};