Summary: | [Windows] Correct Tooltip Text on Windows | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||
Component: | WebKit Misc. | Assignee: | Brent Fulgham <bfulgham> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bfulgham, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Brent Fulgham
2013-08-21 11:33:08 PDT
Created attachment 209289 [details]
Patch
Comment on attachment 209289 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=209289&action=review > Source/WebKit/win/WebView.cpp:2814 > + const Vector<UChar>& toolTipCharacters = m_toolTip.charactersWithNullTermination(); // Retain buffer long enough to make the SendMessage call No need to make this a const reference, can just be a straight up Vector. > Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp:680 > + const Vector<UChar>& dialogTitleCharacters = dialogTitle.charactersWithNullTermination(); // Retain buffer long enough to make the GetOpenFileName call Ditto. (In reply to comment #3) > (From update of attachment 209289 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=209289&action=review > > > Source/WebKit/win/WebView.cpp:2814 > > + const Vector<UChar>& toolTipCharacters = m_toolTip.charactersWithNullTermination(); // Retain buffer long enough to make the SendMessage call > > No need to make this a const reference, can just be a straight up Vector. > > > Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp:680 > > + const Vector<UChar>& dialogTitleCharacters = dialogTitle.charactersWithNullTermination(); // Retain buffer long enough to make the GetOpenFileName call > > Ditto. Is this because return-value optimization will avoid a copy? Committed r154421: <http://trac.webkit.org/changeset/154421> |