|
From: Tapio V. <aa...@us...> - 2012-11-12 22:12:26
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Nov 13 00:10:06 2012 +0200
Const correctness.
---
game/song.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/song.hh b/game/song.hh
index f219412..225696c 100644
--- a/game/song.hh
+++ b/game/song.hh
@@ -78,9 +78,9 @@ class Song: boost::noncopyable {
else return dummyVocal;
}
}
- std::vector<std::string> getVocalTrackNames() {
+ std::vector<std::string> getVocalTrackNames() const {
std::vector<std::string> result;
- BOOST_FOREACH(VocalTracks::value_type &it, vocalTracks) {
+ BOOST_FOREACH(VocalTracks::value_type const &it, vocalTracks) {
result.push_back(it.first);
}
return result;
|