Changeset 84833 in webkit


Ignore:
Timestamp:
Apr 25, 2011 4:30:05 PM (13 years ago)
Author:
jamesr@google.com
Message:

2011-04-25 James Robinson <jamesr@chromium.org>

Reviewed by Adam Barth.

Fix OwnPtr strictness issues in WebCore/inspector/
https://bugs.webkit.org/show_bug.cgi?id=59387

  • inspector/InspectorAgent.cpp: (WebCore::InspectorAgent::InspectorAgent):
  • inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController):
  • inspector/InspectorStyleSheet.cpp: (WebCore::InspectorStyleSheet::ensureSourceData):
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84832 r84833  
     12011-04-25  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Fix OwnPtr strictness issues in WebCore/inspector/
     6        https://bugs.webkit.org/show_bug.cgi?id=59387
     7
     8        * inspector/InspectorAgent.cpp:
     9        (WebCore::InspectorAgent::InspectorAgent):
     10        * inspector/InspectorController.cpp:
     11        (WebCore::InspectorController::InspectorController):
     12        * inspector/InspectorStyleSheet.cpp:
     13        (WebCore::InspectorStyleSheet::ensureSourceData):
     14
    1152011-04-25  Geoffrey Garen  <ggaren@apple.com>
    216
  • trunk/Source/WebCore/inspector/InspectorAgent.cpp

    r84774 r84833  
    111111    , m_client(client)
    112112    , m_frontend(0)
    113     , m_instrumentingAgents(new InstrumentingAgents())
     113    , m_instrumentingAgents(adoptPtr(new InstrumentingAgents))
    114114    , m_injectedScriptManager(injectedScriptManager)
    115     , m_state(new InspectorState(client))
     115    , m_state(adoptPtr(new InspectorState(client)))
    116116    , m_pageAgent(InspectorPageAgent::create(m_instrumentingAgents.get(), page, injectedScriptManager))
    117117    , m_domAgent(InspectorDOMAgent::create(m_instrumentingAgents.get(), m_pageAgent.get(), m_client, m_state.get(), injectedScriptManager))
    118     , m_cssAgent(new InspectorCSSAgent(m_instrumentingAgents.get(), m_domAgent.get()))
     118    , m_cssAgent(adoptPtr(new InspectorCSSAgent(m_instrumentingAgents.get(), m_domAgent.get())))
    119119#if ENABLE(DATABASE)
    120120    , m_databaseAgent(InspectorDatabaseAgent::create(m_instrumentingAgents.get(), m_state.get()))
     
    125125    , m_timelineAgent(InspectorTimelineAgent::create(m_instrumentingAgents.get(), m_state.get()))
    126126#if ENABLE(OFFLINE_WEB_APPLICATIONS)
    127     , m_applicationCacheAgent(new InspectorApplicationCacheAgent(m_instrumentingAgents.get(), page))
     127    , m_applicationCacheAgent(adoptPtr(new InspectorApplicationCacheAgent(m_instrumentingAgents.get(), page)))
    128128#endif
    129129    , m_resourceAgent(InspectorResourceAgent::create(m_instrumentingAgents.get(), m_pageAgent.get(), m_state.get()))
    130130    , m_runtimeAgent(adoptPtr(new PageRuntimeAgent(m_injectedScriptManager, page)))
    131     , m_consoleAgent(new InspectorConsoleAgent(m_instrumentingAgents.get(), this, m_state.get(), injectedScriptManager, m_domAgent.get()))
     131    , m_consoleAgent(adoptPtr(new InspectorConsoleAgent(m_instrumentingAgents.get(), this, m_state.get(), injectedScriptManager, m_domAgent.get())))
    132132#if ENABLE(JAVASCRIPT_DEBUGGER)
    133133    , m_debuggerAgent(PageDebuggerAgent::create(m_instrumentingAgents.get(), m_state.get(), page, injectedScriptManager))
  • trunk/Source/WebCore/inspector/InspectorController.cpp

    r84773 r84833  
    5959InspectorController::InspectorController(Page* page, InspectorClient* inspectorClient)
    6060    : m_injectedScriptManager(InjectedScriptManager::createForPage())
    61     , m_inspectorAgent(new InspectorAgent(page, inspectorClient, m_injectedScriptManager.get()))
     61    , m_inspectorAgent(adoptPtr(new InspectorAgent(page, inspectorClient, m_injectedScriptManager.get())))
    6262    , m_inspectorClient(inspectorClient)
    6363    , m_openingFrontend(false)
  • trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp

    r84777 r84833  
    959959    StyleRuleRangeMap ruleRangeMap;
    960960    p.parseSheet(newStyleSheet.get(), m_parsedStyleSheet->text(), 0, &ruleRangeMap);
    961     OwnPtr<ParsedStyleSheet::SourceData> rangesVector(new ParsedStyleSheet::SourceData());
     961    OwnPtr<ParsedStyleSheet::SourceData> rangesVector(adoptPtr(new ParsedStyleSheet::SourceData));
    962962
    963963    Vector<CSSStyleRule*> rules;
Note: See TracChangeset for help on using the changeset viewer.