~ubuntu-branches/ubuntu/saucy/guayadeque/saucy

« back to all changes in this revision

Viewing changes to src/.svn/text-base/Discogs.cpp.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-02-25 11:59:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225115910-13phl46pz0rgqg0a
Tags: 0.2.9-1
* Imported Upstream version 0.2.9
* Drop 02-google_cover_search_engine_crash.patch patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
        }
111
111
        else if( XmlNode->GetName() == wxT( "year" ) )
112
112
        {
113
 
            wxString Value = XmlNode->GetNodeContent();
114
 
            Value.ToLong( ( long * ) &release->m_Year );
 
113
            long LongValue;
 
114
            XmlNode->GetNodeContent().ToLong( &LongValue );
 
115
            release->m_Year = LongValue;
115
116
        }
116
117
        XmlNode = XmlNode->GetNext();
117
118
    }
131
132
            //guLogMessage( wxT( "reading release..." ) );
132
133
            guDiscogsRelease * Release = new guDiscogsRelease();
133
134
            wxString Value;
 
135
            long LongValue;
134
136
 
135
 
            XmlNode->GetPropVal( wxT( "id" ),&Value );
136
 
            Value.ToLong( ( long * ) &Release->m_Id );
 
137
            XmlNode->GetPropVal( wxT( "id" ), &Value );
 
138
            Value.ToLong( &LongValue );
 
139
            Release->m_Id = LongValue;
137
140
 
138
141
            XmlNode->GetPropVal( wxT( "type" ), &Release->m_Type );
139
142
            GetRelease( XmlNode->GetChildren(), Release );
158
161
        wxString Value;
159
162
        if( XmlNode->GetName() == wxT( "position" ) )
160
163
        {
161
 
            Value = XmlNode->GetNodeContent();
162
 
            Value.ToLong( ( long * ) &track->m_Position );
 
164
            long LongValue;
 
165
            XmlNode->GetNodeContent().ToLong( &LongValue );
 
166
            track->m_Position = LongValue;
163
167
        }
164
168
        else if( XmlNode->GetName() == wxT( "title" ) )
165
169
        {