~ubuntu-branches/debian/sid/kdesvn/sid

« back to all changes in this revision

Viewing changes to src/helpers/ktranslateurl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-04-18 21:41:53 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090418214153-bdc4nd10fs47i8jp
Tags: 1.3.0-1
* New upstream release.
* debian/control
  - Bump Standards-Version to 3.8.1. No further changes.
  - Change Section of kdesvn-dbg to debug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
bool KTranslateUrl::parseURL(const KUrl&url,QString&name,QString&path)
67
67
{
68
68
    QString url_path = url.path();
69
 
#if QT_VERSION < 0x040000
70
 
    int i = url_path.find('/', 1);
71
 
#else
72
69
    int i = url_path.indexOf('/',1);
73
 
#endif
74
70
    if (i > 0)
75
71
    {
76
72
        name = url_path.mid(1, i-1);
79
75
    else
80
76
    {
81
77
        name = url_path.mid(1);
82
 
        path = QString::null;
 
78
        path.clear();
83
79
    }
84
80
 
85
 
    return name != QString::null;
 
81
    return !name.isEmpty();
86
82
}
87
83
 
88
84
KUrl KTranslateUrl::findSystemBase(const QString&filename)
146
142
{
147
143
    QString proto;
148
144
    if (_proto.startsWith("svn+")){
149
 
        proto = "k"+_proto;
 
145
        proto = 'k'+_proto;
150
146
    } else if (_proto== QString("svn")){
151
147
        proto = "ksvn";
152
148
    } else {