diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2011-02-28 15:05:40 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2011-02-28 16:10:47 +0100 |
commit | 3adb533ad747cf34ecbd18cd80c3a0f8fdf34e4b (patch) | |
tree | 416eaa668b4232fbba6ca3683b70163bd1873998 /src/plugins/bazaar/clonewizardpage.cpp | |
parent | f9bb4c59dc75c32e4162d02141eaf1602fbda4c8 (diff) | |
download | qt-creator-3adb533ad747cf34ecbd18cd80c3a0f8fdf34e4b.tar.gz |
Bazaar: Cleanups
Clean up whitespaces and coding style issues.
Diffstat (limited to 'src/plugins/bazaar/clonewizardpage.cpp')
-rw-r--r-- | src/plugins/bazaar/clonewizardpage.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/bazaar/clonewizardpage.cpp b/src/plugins/bazaar/clonewizardpage.cpp index e828bc340a..39727e5e35 100644 --- a/src/plugins/bazaar/clonewizardpage.cpp +++ b/src/plugins/bazaar/clonewizardpage.cpp @@ -60,11 +60,9 @@ QString CloneWizardPage::directoryFromRepository(const QString &repository) cons QString repo = repository.trimmed(); if (repo.startsWith(QLatin1String("lp:"))) return repo.mid(3); - else { - const QChar slash = QLatin1Char('/'); - if (repo.endsWith(slash)) - repo.truncate(repo.size() - 1); - // Take the basename or the repository url - return repo.mid(repo.lastIndexOf(slash) + 1); - } + const QChar slash = QLatin1Char('/'); + if (repo.endsWith(slash)) + repo.truncate(repo.size() - 1); + // Take the basename or the repository url + return repo.mid(repo.lastIndexOf(slash) + 1); } |