Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Source/WebCore/platform/qt/RenderThemeQt.cpp b/Source/WebCore/platform/qt/RenderThemeQt.cpp
- index 8846ee7..1de8153 100644
- --- a/Source/WebCore/platform/qt/RenderThemeQt.cpp
- +++ b/Source/WebCore/platform/qt/RenderThemeQt.cpp
- @@ -867,7 +867,7 @@ String RenderThemeQt::fileListNameForWidth(const FileList* fileList, const Font&
- int n = fileList->length();
- string = QCoreApplication::translate("QWebPage", "%n file(s)",
- "number of chosen file",
- - QCoreApplication::DefaultCodec, n);
- + n);
- }
- return string;
- diff --git a/Source/WebCore/platform/qt/SharedTimerQt.cpp b/Source/WebCore/platform/qt/SharedTimerQt.cpp
- index cebfea6..aaca428 100644
- --- a/Source/WebCore/platform/qt/SharedTimerQt.cpp
- +++ b/Source/WebCore/platform/qt/SharedTimerQt.cpp
- @@ -33,7 +33,7 @@
- #include <QBasicTimer>
- #include <QCoreApplication>
- #include <QDebug>
- -#include <QWeakPointer>
- +#include <QPointer>
- #include <wtf/CurrentTime.h>
- namespace WebCore {
- @@ -83,7 +83,7 @@ void SharedTimerQt::destroy()
- SharedTimerQt* SharedTimerQt::inst()
- {
- - static QWeakPointer<SharedTimerQt> timer;
- + static QPointer<SharedTimerQt> timer;
- if (!timer) {
- timer = new SharedTimerQt();
- timer.data()->connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), SLOT(destroy()));
- diff --git a/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp b/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
- index 8684f1c..b206692 100644
- --- a/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
- +++ b/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
- @@ -43,7 +43,7 @@ namespace WebKit {
- ResourceError cancelledError(const ResourceRequest& request)
- {
- ResourceError error = ResourceError("QtNetwork", QNetworkReply::OperationCanceledError, request.url().string(),
- - QCoreApplication::translate("QWebFrame", "Request cancelled", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Request cancelled", 0));
- error.setIsCancellation(true);
- return error;
- }
- @@ -51,37 +51,37 @@ ResourceError cancelledError(const ResourceRequest& request)
- ResourceError blockedError(const ResourceRequest& request)
- {
- return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotUseRestrictedPort, request.url().string(),
- - QCoreApplication::translate("QWebFrame", "Request blocked", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Request blocked", 0));
- }
- ResourceError cannotShowURLError(const ResourceRequest& request)
- {
- return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotShowURL, request.url().string(),
- - QCoreApplication::translate("QWebFrame", "Cannot show URL", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Cannot show URL", 0));
- }
- ResourceError interruptedForPolicyChangeError(const ResourceRequest& request)
- {
- return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeFrameLoadInterruptedByPolicyChange, request.url().string(),
- - QCoreApplication::translate("QWebFrame", "Frame load interrupted by policy change", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Frame load interrupted by policy change", 0));
- }
- ResourceError cannotShowMIMETypeError(const ResourceResponse& response)
- {
- return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotShowMIMEType, response.url().string(),
- - QCoreApplication::translate("QWebFrame", "Cannot show mimetype", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Cannot show mimetype", 0));
- }
- ResourceError fileDoesNotExistError(const ResourceResponse& response)
- {
- return ResourceError("QtNetwork", QNetworkReply::ContentNotFoundError, response.url().string(),
- - QCoreApplication::translate("QWebFrame", "File does not exist", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "File does not exist", 0));
- }
- ResourceError pluginWillHandleLoadError(const ResourceResponse& response)
- {
- return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodePlugInWillHandleLoad, response.url().string(),
- - QCoreApplication::translate("QWebFrame", "Loading is handled by the media engine", 0, QCoreApplication::UnicodeUTF8));
- + QCoreApplication::translate("QWebFrame", "Loading is handled by the media engine", 0));
- }
- } // namespace WebKit
- diff --git a/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp b/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
- index 02a90ec..cfd2c1a 100644
- --- a/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
- +++ b/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
- @@ -98,7 +98,7 @@ void WebProcess::platformSetCacheModel(CacheModel cacheModel)
- // The Mac port of WebKit2 uses a fudge factor of 1000 here to account for misalignment, however,
- // that tends to overestimate the memory quite a bit (1 byte misalignment ~ 48 MiB misestimation).
- // We use 1024 * 1023 for now to keep the estimation error down to +/- ~1 MiB.
- - uint64_t freeVolumeSpace = WebCore::getVolumeFreeSizeForPath(diskCache->cacheDirectory().toAscii().constData()) / 1024 / 1023;
- + uint64_t freeVolumeSpace = WebCore::getVolumeFreeSizeForPath(diskCache->cacheDirectory().toLocal8Bit().constData()) / 1024 / 1023;
- // The following variables are initialised to 0 because WebProcess::calculateCacheSizes might not
- // set them in some rare cases.
Add Comment
Please, Sign In to add comment