Changeset 54434 in webkit
- Timestamp:
- Feb 5, 2010 11:08:07 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54430 r54434 1 2010-02-05 Maxime Simone <simon.maxime@gmail.com> 2 3 Reviewed by David Levin. 4 5 More robust conversion from BString to String for Haiku port. 6 https://bugs.webkit.org/show_bug.cgi?id=34527 7 8 Covered by existing tests. 9 10 * platform/text/haiku/StringHaiku.cpp: Fixed include order, Improved coversion from BString. 11 1 12 2010-02-05 Steve Falkenburg <sfalken@apple.com> 2 13 -
trunk/WebCore/platform/text/haiku/StringHaiku.cpp
r46008 r54434 25 25 26 26 #include "config.h" 27 #include "CString.h"28 29 27 #include "PlatformString.h" 30 28 29 #include "CString.h" 31 30 #include <String.h> 32 33 31 34 32 namespace WebCore { 35 33 36 34 // String conversions 37 String::String(const BString& str)35 String::String(const BString& bstring) 38 36 { 39 m_impl = String::fromUTF8(str.String(), str.Length()).impl(); 37 const UChar* str = reinterpret_cast<const UChar*>(bstring.String()); 38 const size_t size = bstring.Length(); 39 40 if (!str) 41 return; 42 43 if (!size) 44 m_impl = StringImpl::empty(); 45 else 46 m_impl = StringImpl::create(str, size); 40 47 } 41 48
Note: See TracChangeset
for help on using the changeset viewer.