Changeset 81967 in webkit
- Timestamp:
- Mar 25, 2011 10:21:41 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r81965 r81967 1 2011-03-25 Benjamin Poulain <benjamin.poulain@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled 6 https://bugs.webkit.org/show_bug.cgi?id=57087 7 8 Use explicit conversion for string to avoid depending on the default codec 9 installed by the user code. 10 11 * bridge/qt/qt_pixmapruntime.cpp: 12 (JSC::Bindings::QtPixmapToDataUrlMethod::invoke): 13 (JSC::Bindings::QtPixmapInstance::valueOf): 14 * platform/qt/LanguageQt.cpp: 15 (WebCore::platformDefaultLanguage): 16 * platform/qt/PasteboardQt.cpp: 17 (WebCore::Pasteboard::writeSelection): 18 * plugins/qt/PluginPackageQt.cpp: 19 (WebCore::initializeGtk): 20 * plugins/qt/PluginViewQt.cpp: 21 (WebCore::getPluginDisplay): 22 1 23 2011-03-25 Chang Shu <cshu@webkit.org> 2 24 -
trunk/Source/WebCore/bridge/qt/qt_pixmapruntime.cpp
r81272 r81967 120 120 QBuffer buffer(&byteArray); 121 121 instance->toImage().save(&buffer, "PNG"); 122 const QString encodedString = Q String("data:image/png;base64,") + byteArray.toBase64();122 const QString encodedString = QLatin1String("data:image/png;base64,") + QLatin1String(byteArray.toBase64()); 123 123 const UString ustring((UChar*)encodedString.utf16(), encodedString.length()); 124 124 return jsString(exec, ustring); … … 240 240 JSValue QtPixmapInstance::valueOf(ExecState* exec) const 241 241 { 242 const QString stringValue = QString ("[Qt Native Pixmap %1,%2]").arg(width()).arg(height());242 const QString stringValue = QString::fromLatin1("[Qt Native Pixmap %1,%2]").arg(width()).arg(height()); 243 243 UString ustring((UChar*)stringValue.utf16(), stringValue.length()); 244 244 return jsString(exec, ustring); -
trunk/Source/WebCore/platform/qt/LanguageQt.cpp
r70095 r81967 36 36 { 37 37 QLocale locale; 38 return locale.name().replace( "_", "-");38 return locale.name().replace(QLatin1Char('_'), QLatin1Char('-')); 39 39 } 40 40 -
trunk/Source/WebCore/platform/qt/PasteboardQt.cpp
r75339 r81967 78 78 #endif 79 79 if (canSmartCopyOrDelete) 80 md->setData( "application/vnd.qtwebkit.smartpaste", QByteArray());80 md->setData(QLatin1String("application/vnd.qtwebkit.smartpaste"), QByteArray()); 81 81 } 82 82 -
trunk/Source/WebCore/plugins/qt/PluginPackageQt.cpp
r71006 r81967 122 122 } 123 123 124 QLibrary library( "libgtk-x11-2.0.so.0");124 QLibrary library(QLatin1String("libgtk-x11-2.0.so.0")); 125 125 if (library.load()) { 126 126 typedef void *(*gtk_init_check_ptr)(int*, char***); -
trunk/Source/WebCore/plugins/qt/PluginViewQt.cpp
r79988 r81967 848 848 // The code below has the same effect as this one: 849 849 // Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default()); 850 QLibrary library( "libgdk-x11-2.0", 0);850 QLibrary library(QLatin1String("libgdk-x11-2.0"), 0); 851 851 if (!library.load()) 852 852 return 0;
Note: See TracChangeset
for help on using the changeset viewer.