Skip to content
Browse files

Allow const CAEChannelInfo be cast to std::string

  • Loading branch information...
1 parent be4be4a commit f11610183a72d3e5b2d631cbbfd2225ec037f3ce @t-nelson t-nelson committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 xbmc/cores/AudioEngine/Utils/AEChannelInfo.cpp
  2. +1 −1 xbmc/cores/AudioEngine/Utils/AEChannelInfo.h
View
2 xbmc/cores/AudioEngine/Utils/AEChannelInfo.cpp
@@ -221,7 +221,7 @@ const enum AEChannel CAEChannelInfo::operator[](unsigned int i) const
return m_channels[i];
}
-CAEChannelInfo::operator std::string()
+CAEChannelInfo::operator std::string() const
{
if (m_channelCount == 0)
return "NULL";
View
2 xbmc/cores/AudioEngine/Utils/AEChannelInfo.h
@@ -83,7 +83,7 @@ class CAEChannelInfo {
CAEChannelInfo& operator+=(const enum AEChannel& rhs);
CAEChannelInfo& operator-=(const enum AEChannel& rhs);
const enum AEChannel operator[](unsigned int i) const;
- operator std::string();
+ operator std::string() const;
/* remove any channels that dont exist in the provided info */
void ResolveChannels(const CAEChannelInfo& rhs);

0 comments on commit f116101

Please sign in to comment.
Something went wrong with that request. Please try again.