fixed invalid cast of an rvalue by adding a string constructor to class eServiceRefer...
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Jan 2006 23:01:35 +0000 (23:01 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Jan 2006 23:01:35 +0000 (23:01 +0000)
lib/dvb/idvb.h
lib/dvb/metaparser.cpp

index 90457dc1f411fe3164782a516a3a037e52955c85..5b6f19fc806b0ea126d655c13e82ec91d473271c 100644 (file)
@@ -185,6 +185,11 @@ struct eServiceReferenceDVB: public eServiceReference
                :eServiceReference(eServiceReference::idDVB, 0)
        {
        }
+
+       eServiceReferenceDVB(const std::string &string)
+               :eServiceReference(string)
+       {
+       }
 };
 
 
index 67eb3d421242f3314ad8ca732de5f66cfe2783b0..abc4456e2c905d329b36d1639da229ac56a83467 100644 (file)
@@ -28,7 +28,7 @@ int eDVBMetaParser::parseFile(const std::string &tsname)
                switch (linecnt)
                {
                case 0:
-                       m_ref = (const eServiceReferenceDVB&)eServiceReference(line);
+                       m_ref = eServiceReferenceDVB(line);
                        break;
                case 1:
                        m_name = line;