2011-05-06 Alexis Menard <alexis.menard@openbossa.org>
authorAlexis Menard <alexis.menard@openbossa.org>
Fri, 6 May 2011 07:35:46 +0000 (07:35 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 9 May 2011 20:45:21 +0000 (17:45 -0300)
commitedaf7dc531eba8f54da1e757710d5fe1c0ec98ab
treeda44dfab63f14f2ff21fde1574334bf959310415
parentc88e89dfa6e73127f3b357fc353ec1f0c6fecc6b
2011-05-06  Alexis Menard  <alexis.menard@openbossa.org>

        Reviewed by Alexey Proskuryakov.

        Build fix with gcc 4.6 and c++0x support.
        https://bugs.webkit.org/show_bug.cgi?id=60284

        When enabling support of c++0x the compilation fails because of an
        ambiguous overload error. In this code when constructing the pair
        we use the new c++0x rvalue reference feature (&&). It means we are
        calling String(const WTF::AtomicString&) which becomes ambiguous because
        it has an overload WTF::String::String(const WTF::String&) and usually one
        with the native port string type (e.g. QString). In this code we want the
        String version because the pair store Strings.

        No new tests, build fix.

        * loader/FormSubmission.cpp:
        (WebCore::FormSubmission::create):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/FormSubmission.cpp