Changeset 203 for trunk/src


Ignore:
Timestamp:
05/15/2009 12:44:13 PM (3 years ago)
Author:
guyru
Message:

Use auto_ptr for the wxGraphicsConetext pointer

File:
1 edited

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); 
Note: See TracChangeset for help on using the changeset viewer.