Skip to content
This repository
Browse code

Allow const CAEChannelInfo be cast to std::string

  • Loading branch information...
commit f11610183a72d3e5b2d631cbbfd2225ec037f3ce 1 parent be4be4a
Trent Nelson authored September 11, 2013
2  xbmc/cores/AudioEngine/Utils/AEChannelInfo.cpp
@@ -221,7 +221,7 @@ const enum AEChannel CAEChannelInfo::operator[](unsigned int i) const
221 221
   return m_channels[i];
222 222
 }
223 223
 
224  
-CAEChannelInfo::operator std::string()
  224
+CAEChannelInfo::operator std::string() const
225 225
 {
226 226
   if (m_channelCount == 0)
227 227
     return "NULL";
2  xbmc/cores/AudioEngine/Utils/AEChannelInfo.h
@@ -83,7 +83,7 @@ class CAEChannelInfo {
83 83
   CAEChannelInfo& operator+=(const enum AEChannel& rhs);
84 84
   CAEChannelInfo& operator-=(const enum AEChannel& rhs);
85 85
   const enum AEChannel operator[](unsigned int i) const;
86  
-  operator std::string();
  86
+  operator std::string() const;
87 87
 
88 88
   /* remove any channels that dont exist in the provided info */
89 89
   void ResolveChannels(const CAEChannelInfo& rhs);

0 notes on commit f116101

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