Changeset 203

Show
Ignore:
Timestamp:
05/15/2009 12:44:13 PM (16 months ago)
Author:
guyru
Message:

Use auto_ptr for the wxGraphicsConetext pointer

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/simple_histogram.cpp

    r202 r203  
    2121#include "simple_histogram.h" 
    2222#include <boost/foreach.hpp> 
     23#include <memory> 
    2324using namespace std; 
    2425 
     
    3637{ 
    3738        wxPaintDC pdc(this); 
    38         wxGraphicsContext* dc = wxGraphicsContext::Create(pdc); 
     39        auto_ptr<wxGraphicsContext> dc(wxGraphicsContext::Create(pdc)); 
    3940         
    4041        dc->SetBrush(*wxBLUE_BRUSH);