2009-01-20 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Jan 2009 06:38:55 +0000 (06:38 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Jan 2009 06:38:55 +0000 (06:38 +0000)
        Try to fix Wx build.

        * platform/wx/PasteboardWx.cpp:
        (WebCore::Pasteboard::writeSelection): Removed code that replaces backslash
        with backslashAsCurrencySymbol. I'm pretty sure this is not needed when writing
        to the clipboard. Other platforms don't do it. If it was needed, the new function
        to use would be displayStringModifiedByEncoding.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40082 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/wx/PasteboardWx.cpp

index df33c95..12dafd4 100644 (file)
@@ -1,3 +1,13 @@
+2009-01-20  Darin Adler  <darin@apple.com>
+
+        Try to fix Wx build.
+
+        * platform/wx/PasteboardWx.cpp:
+        (WebCore::Pasteboard::writeSelection): Removed code that replaces backslash
+        with backslashAsCurrencySymbol. I'm pretty sure this is not needed when writing
+        to the clipboard. Other platforms don't do it. If it was needed, the new function
+        to use would be displayStringModifiedByEncoding.
+
 2009-01-19  Brent Fulgham  <bfulgham@gmail.com>
 
         Reviewed by Mitz Pettel.
index c50df67..67697de 100644 (file)
@@ -54,10 +54,7 @@ void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete,
 {
     if (wxTheClipboard->Open())
     {
-        String text = frame->selectedText();
-        text.replace('\\', frame->backslashAsCurrencySymbol());
-        
-        wxTheClipboard->SetData( new wxTextDataObject(text) );
+        wxTheClipboard->SetData( new wxTextDataObject(frame->selectedText()) );
         wxTheClipboard->Close();
     }
 }