~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to libkcddb/synccddbplookup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  {
48
48
    trackOffsetList_ = trackOffsetList;
49
49
 
50
 
    socket_ = KSocketFactory::synchronousConnectToHost("cddbp", hostName, port);
 
50
    socket_ = KSocketFactory::synchronousConnectToHost(QLatin1String( "cddbp" ), hostName, port);
51
51
 
52
52
    if ( !socket_->isValid() )
53
53
    {
138
138
      // We have multiple matches
139
139
      line = readLine();
140
140
 
141
 
      while (!line.startsWith(".") && !line.isNull() )
 
141
      while (!line.startsWith(QLatin1String( "." )) && !line.isNull() )
142
142
      {
143
143
        parseExtraMatch( line );
144
144
        line = readLine();
162
162
    QStringList lineList;
163
163
    line = readLine();
164
164
 
165
 
    while ( !line.startsWith(".") && !line.isNull() )
 
165
    while ( !line.startsWith(QLatin1String( "." )) && !line.isNull() )
166
166
    {
167
167
      lineList.append( line );
168
168
      line = readLine();
172
172
 
173
173
    if ( info.load( lineList ) )
174
174
    {
175
 
      info.set( "category", category_ );
176
 
      info.set( "discid", discid_ );
177
 
      info.set( "source", "freedb" );
 
175
      info.set( QLatin1String( "category" ), category_ );
 
176
      info.set( QLatin1String( "discid" ), discid_ );
 
177
      info.set( QLatin1String( "source" ), QLatin1String( "freedb" ) );
178
178
      cdInfoList_.append( info );
179
179
    }
180
180