Fix unintended rename of track

pull/1/head
Timothy Pearson 12 years ago
parent ba30b44ed0
commit 2ee958315a

@ -27,8 +27,8 @@ using namespace KMPlayer;
KDE_NO_EXPORT NodePtr XSPF::Playlist::childFromTag (const TQString & tag) {
const char * name = tag.latin1 ();
if (!strcasecmp (name, "tractdelist"))
return new Tractdelist (m_doc);
if (!strcasecmp (name, "tracklist"))
return new Tracklist (m_doc);
else if (!strcasecmp (name, "creator"))
return new DarkNode (m_doc, name, id_node_creator);
else if (!strcasecmp (name, "title"))
@ -69,7 +69,7 @@ KDE_NO_EXPORT void XSPF::Playlist::closed () {
//-----------------------------------------------------------------------------
KDE_NO_EXPORT NodePtr XSPF::Tractdelist::childFromTag (const TQString & tag) {
KDE_NO_EXPORT NodePtr XSPF::Tracklist::childFromTag (const TQString & tag) {
const char * name = tag.latin1 ();
if (!strcasecmp (name, "track"))
return new XSPF::Track (m_doc);

@ -42,7 +42,7 @@ const short id_node_license = 509;
const short id_node_attribution = 510;
const short id_node_meta = 511;
const short id_node_extension = 512;
const short id_node_tractdelist = 513;
const short id_node_tracklist = 513;
const short id_node_track = 514;
const short id_node_album = 515;
const short id_node_tracknum = 516;
@ -58,11 +58,11 @@ public:
void closed ();
};
class KMPLAYER_NO_EXPORT Tractdelist : public Element {
class KMPLAYER_NO_EXPORT Tracklist : public Element {
public:
KDE_NO_CDTOR_EXPORT Tractdelist (NodePtr & d) : Element (d, id_node_tractdelist) {}
KDE_NO_CDTOR_EXPORT Tracklist (NodePtr & d) : Element (d, id_node_tracklist) {}
NodePtr childFromTag (const TQString & tag);
KDE_NO_EXPORT const char * nodeName () const { return "tractdelist"; }
KDE_NO_EXPORT const char * nodeName () const { return "tracklist"; }
bool expose () const { return false; }
};

Loading…
Cancel
Save