Summary: | Clean up: Remove unnecessary runtime computation of string length | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
Component: | WebCore Misc. | Assignee: | Daniel Bates <dbates> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, ap, beidson | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Daniel Bates
2015-04-30 18:27:37 PDT
Created attachment 252127 [details]
Patch
Comment on attachment 252127 [details]
Patch
r=me
Committed r183663: <http://trac.webkit.org/changeset/183663> Comment on attachment 252127 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252127&action=review > Source/WebCore/Modules/webdatabase/DatabaseBackendBase.cpp:100 > - strcpy(qualifiedName + strlen(qualifier), unqualifiedInfoTableName); > + strcpy(qualifiedName + sizeof(qualifier) - 1, unqualifiedInfoTableName); This change is unnecessary for clang or gcc since they already constant-fold this. So in practice this is a at most a Windows-only optimization. |