Commit f2933708 authored by hausmann@webkit.org's avatar hausmann@webkit.org
Browse files

Fix compilation with gcc 3.4.

Patch by Thiago Macieira <thiago.macieira@nokia.com> on 2010-04-28
Reviewed by Simon Hausmann.

AtomicStringImpl.h:29: error: base `WebCore::StringImpl' with only
non-default constructor in class without a constructor

* wtf/text/AtomicStringImpl.h:
(WebCore::AtomicStringImpl::AtomicStringImpl): Provide a default constructor.
* wtf/text/StringImpl.h: Allow AtomicStringImpl to call a StringImpl constructor through a friend declaration.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d12b409d
2010-04-28 Thiago Macieira <thiago.macieira@nokia.com>
Reviewed by Simon Hausmann.
Fix compilation with gcc 3.4.
AtomicStringImpl.h:29: error: base `WebCore::StringImpl' with only
non-default constructor in class without a constructor
* wtf/text/AtomicStringImpl.h:
(WebCore::AtomicStringImpl::AtomicStringImpl): Provide a default constructor.
* wtf/text/StringImpl.h: Allow AtomicStringImpl to call a StringImpl constructor through a friend declaration.
2010-04-27 Stephanie Lewis <slewis@apple.com>
 
Fix Tiger build.
......
......@@ -29,6 +29,8 @@ namespace WebCore {
class AtomicStringImpl : public StringImpl
{
public:
AtomicStringImpl() : StringImpl(0) {}
};
}
......
......@@ -69,6 +69,7 @@ class StringImpl : public StringImplBase {
friend struct WTF::CStringTranslator;
friend struct WTF::UCharBufferTranslator;
friend struct WTF::HashAndCharactersTranslator;
friend class AtomicStringImpl;
private:
// Used to construct static strings, which have an special refCount that can never hit zero.
// This means that the static string will never be destroyed, which is important because
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment