Changeset View
Changeset View
Standalone View
Standalone View
src/core/forwardingslavebase.cpp
Show All 11 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
12 | Library General Public License for more details. | 12 | Library General Public License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | // TODO: remove me | | |||
21 | #undef QT_NO_CAST_FROM_ASCII | | |||
22 | | ||||
23 | #include "forwardingslavebase.h" | 20 | #include "forwardingslavebase.h" | ||
24 | #include "../pathhelpers_p.h" | 21 | #include "../pathhelpers_p.h" | ||
25 | 22 | | |||
26 | #include "deletejob.h" | 23 | #include "deletejob.h" | ||
27 | #include "mkdirjob.h" | 24 | #include "mkdirjob.h" | ||
28 | #include "job.h" | 25 | #include "job.h" | ||
29 | 26 | | |||
30 | #include <qmimedatabase.h> | 27 | #include <qmimedatabase.h> | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
86 | { | 83 | { | ||
87 | delete d; | 84 | delete d; | ||
88 | } | 85 | } | ||
89 | 86 | | |||
90 | bool ForwardingSlaveBasePrivate::internalRewriteUrl(const QUrl &url, QUrl &newURL) | 87 | bool ForwardingSlaveBasePrivate::internalRewriteUrl(const QUrl &url, QUrl &newURL) | ||
91 | { | 88 | { | ||
92 | bool result = true; | 89 | bool result = true; | ||
93 | 90 | | |||
94 | if (url.scheme() == q->mProtocol) { | 91 | if (url.scheme() == QLatin1String(q->mProtocol)) { | ||
dfaure: QLatin1String is sufficient for comparisons (and cheaper) | |||||
95 | result = q->rewriteUrl(url, newURL); | 92 | result = q->rewriteUrl(url, newURL); | ||
96 | } else { | 93 | } else { | ||
97 | newURL = url; | 94 | newURL = url; | ||
98 | } | 95 | } | ||
99 | 96 | | |||
100 | m_processedURL = newURL; | 97 | m_processedURL = newURL; | ||
101 | m_requestedURL = url; | 98 | m_requestedURL = url; | ||
102 | return result; | 99 | return result; | ||
▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines |
QLatin1String is sufficient for comparisons (and cheaper)