~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to kresources/idmapper.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg, Rohan Garg, Philip Muškovac
  • Date: 2013-11-23 17:36:44 UTC
  • mfrom: (1.1.102)
  • Revision ID: package-import@ubuntu.com-20131123173644-p5ow94192ezsny8g
Tags: 4:4.11.80-0ubuntu1
[ Rohan Garg ]
* New upstream beta release
  - Bump akonadi requirement to 1.10.45
  - Update install files
  - Update symbols

[ Philip Muškovac ]
* kdepimlibs-dev/-dbg breaks/replaces kdepim-runtime/-dbg (<< 4:4.11.80)

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
QString IdMapper::filename()
93
93
{
94
94
  QString file = d->path;
95
 
  if ( !file.endsWith( '/' ) ) {
96
 
    file += '/';
 
95
  if ( !file.endsWith( QLatin1Char('/') ) ) {
 
96
    file += QLatin1Char('/');
97
97
  }
98
98
  file += d->identifier;
99
99
 
114
114
  QString line;
115
115
  while ( !ts.atEnd() ) {
116
116
    line = ts.readLine( 1024 );
117
 
    QStringList parts = line.split( "\x02\x02", QString::KeepEmptyParts );
 
117
    QStringList parts = line.split( QLatin1String("\x02\x02"), QString::KeepEmptyParts );
118
118
    // sanity check; the uidmap file could be corrupted and
119
119
    // QList doesn't like accessing invalid indexes
120
120
    if ( parts.count() == 3 ) {
144
144
    if ( d->fingerprintMap.contains( it.key() ) ) {
145
145
      fingerprint = d->fingerprintMap[ it.key() ];
146
146
    }
147
 
    content += it.key() + "\x02\x02" + it.value().toString() + "\x02\x02" + fingerprint + "\r\n";
 
147
    content += it.key() + QLatin1String("\x02\x02") + it.value().toString() + QLatin1String("\x02\x02") + fingerprint + QLatin1String("\r\n");
148
148
  }
149
149
  QTextStream ts( &file );
150
150
  ts << content;
217
217
    if ( d->fingerprintMap.contains( it.key() ) ) {
218
218
      fp = d->fingerprintMap[ it.key() ];
219
219
    }
220
 
    content += it.key() + '\t' + it.value().toString() + '\t' + fp + "\r\n";
 
220
    content += it.key() + QLatin1Char('\t') + it.value().toString() + QLatin1Char('\t') + fp + QLatin1String("\r\n");
221
221
  }
222
222
 
223
223
  return content;