~ubuntu-branches/ubuntu/precise/kde-runtime/precise-proposed

« back to all changes in this revision

Viewing changes to kioslave/trash/kio_trash_win.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-03-30 21:36:32 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120330213632-xsvx5vu8qg50aui7
Tags: 4:4.8.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
 
412
412
bool TrashProtocol::doFileOp(const KUrl &url, UINT wFunc, FILEOP_FLAGS fFlags)
413
413
{
414
 
    // remove first '/' - can't use toLocalFile() because scheme is not file://
415
 
    const QString path = url.path().mid(1).replace(QLatin1Char('/'),QLatin1Char('\\'));
 
414
    const QString path = url.path().replace(QLatin1Char('/'),QLatin1Char('\\'));
416
415
    // must be double-null terminated.
417
416
    QByteArray delBuf( ( path.length() + 2 ) * 2, 0 );
418
417
    memcpy( delBuf.data(), path.utf16(), path.length() * 2 );