Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow const CAEChannelInfo be cast to std::string

  • Loading branch information...
commit f11610183a72d3e5b2d631cbbfd2225ec037f3ce 1 parent be4be4a
Trent Nelson authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.