Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
libQtWebKit-devel
0257-qurl-validate-speedup.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0257-qurl-validate-speedup.diff of Package libQtWebKit-devel
qt-bugs@ issue : N234179 Trolltech task ID : none bugs.kde.org number : 174144 applied: no author: David Faure <faure@kde.org> (and Qt Software, independently) QUrl is supposed to have flags for parsing and validating a given URL only once. However it only sets the Validated flag on error, not after successful validation. So a valid url will be validated over and over again, every time e.g. port() or isValid() is called. --- src/corelib/io/qurl.cpp +++ src/corelib/io/qurl.cpp @@ -3414,6 +3414,8 @@ void QUrlPrivate::validate() const that->encodedOriginal = that->toEncoded(); // may detach parse(ParseOnly); + QURL_SETFLAG(that->stateFlags, Validated); + if (!isValid) return;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor