Changeset 155115 in webkit
- Timestamp:
- Sep 5, 2013 7:31:30 AM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r155106 r155115 1 2013-09-05 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 Remove String(RefPtr<StringImpl>) constructor 4 https://bugs.webkit.org/show_bug.cgi?id=120767 5 6 Reviewed by Anders Carlsson. 7 8 The String(RefPtr<StringImpl>) constructor should be removed for the following reasons: 9 - It almost does not have clients, so it is unneeded. 10 - RefPtr should never be passed by value 11 12 * wtf/text/StringBuilder.cpp: 13 (WTF::StringBuilder::shrinkToFit): 14 * wtf/text/WTFString.h: 15 1 16 2013-09-05 Jaehun Lim <ljaehun.lim@samsung.com> 2 17 -
trunk/Source/WTF/wtf/text/StringBuilder.cpp
r152306 r155115 342 342 else 343 343 reallocateBuffer<UChar>(m_length); 344 m_string = m_buffer; 345 m_buffer = 0; 344 m_string = m_buffer.release(); 346 345 } 347 346 } -
trunk/Source/WTF/wtf/text/WTFString.h
r153217 r155115 129 129 String(StringImpl* impl) : m_impl(impl) { } 130 130 String(PassRefPtr<StringImpl> impl) : m_impl(impl) { } 131 String(RefPtr<StringImpl> impl) : m_impl(impl) { }132 131 133 132 // Construct a string from a constant string literal.
Note: See TracChangeset
for help on using the changeset viewer.