Changeset 155868 in webkit


Ignore:
Timestamp:
Sep 16, 2013 9:19:01 AM (11 years ago)
Author:
Brent Fulgham
Message:

[Win] Compile errors in WebCore derived sources.
https://bugs.webkit.org/show_bug.cgi?id=121420

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-09-16
Reviewed by Brent Fulgham.

  • dom/make_names.pl:

(printNamesCppFile): Added const modifier.
(printDefinitions): Use C style cast.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155865 r155868  
     12013-09-16  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [Win] Compile errors in WebCore derived sources.
     4        https://bugs.webkit.org/show_bug.cgi?id=121420
     5
     6        Reviewed by Brent Fulgham.
     7
     8        * dom/make_names.pl:
     9        (printNamesCppFile): Added const modifier.
     10        (printDefinitions): Use C style cast.
     11
    1122013-09-16  Hans Muller  <hmuller@adobe.com>
    213
  • trunk/Source/WebCore/dom/make_names.pl

    r155834 r155868  
    726726        print F "{\n    static const WebCore::QualifiedName* const $parameters{namespace}Tags[] = {\n";
    727727        for my $name (sort keys %allTags) {
    728             print F "        reinterpret_cast<WebCore::QualifiedName*>(&${name}Tag),\n";
     728            print F "        reinterpret_cast<const WebCore::QualifiedName*>(&${name}Tag),\n";
    729729        }
    730730        print F "    };\n";
     
    741741        print F "{\n    static const WebCore::QualifiedName* const $parameters{namespace}Attrs[] = {\n";
    742742        for my $name (sort keys %allAttrs) {
    743             print F "        reinterpret_cast<WebCore::QualifiedName*>(&${name}Attr),\n";
     743            print F "        reinterpret_cast<const WebCore::QualifiedName*>(&${name}Attr),\n";
    744744        }
    745745        print F "    };\n";
     
    753753
    754754    print(F "    // Namespace\n");
    755     print(F "    new (NotNull, static_cast<void*>(&${lowerNamespace}NamespaceURI)) AtomicString(${lowerNamespace}NS);\n");
     755    print(F "    new (NotNull, (void*)&${lowerNamespace}NamespaceURI) AtomicString(${lowerNamespace}NS);\n");
    756756    print(F "\n");
    757757    print F StaticString::GenerateStringAsserts(\%allStrings);
     
    864864;
    865865    for my $name (sort keys %$namesRef) {
    866         print F "        { &$name$shortCamelType, *${name}Impl },\n";
     866        print F "        { (void*)&$name$shortCamelType, *${name}Impl },\n";
    867867    }
    868868
Note: See TracChangeset for help on using the changeset viewer.