--- a/webengine/osswebengine/WebCore/platform/StringImpl.cpp Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/StringImpl.cpp Tue Aug 31 16:17:46 2010 +0300
@@ -103,10 +103,6 @@
}
m_data = newUCharVector(m_length);
- if ( !m_data ) {
- m_length = 0;
- return;
- }
int i = m_length;
UChar* ptr = m_data;
while (i--) {
@@ -127,11 +123,7 @@
}
m_data = newUCharVector(len);
- if ( !m_data ) {
- m_length = 0;
- return;
- }
- memcpy(m_data, str, len * sizeof(UChar));
+ memcpy(m_data, str, len * sizeof(UChar));
}
StringImpl::~StringImpl()