Changeset 8707


Ignore:
Timestamp:
08/24/07 15:37:58 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/macros
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r8478 r8707  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.34 2007-05-09 12:15:51 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.35 2007-08-24 14:37:58 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    131131        gStyle->SetOptStat(111111);
    132132
    133         TSQLRow *row;
    134 
    135133        // Create TGraph objects
    136134        TGraph &gt = res.GetFieldCount()>4 ? *new TGraphErrors : *new TGraph;
     
    158156
    159157        // Loop over the data
     158        TSQLRow *row = 0;
    160159        while ((row=res.Next()))
    161160        {
     
    166165            const char *snum = res.GetFieldCount()>3 ? (*row)[3] : 0;
    167166            const char *verr = res.GetFieldCount()>4 ? (*row)[5] : 0;
     167
     168            delete row;
     169
    168170            if (!date || !val || !zd)
    169171                continue;
  • trunk/MagicSoft/Mars/datacenter/macros/plotoptical.C

    r8216 r8707  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotoptical.C,v 1.6 2006-11-17 11:45:29 dorner Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotoptical.C,v 1.7 2007-08-24 14:37:58 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    150150        gStyle->SetOptStat(111111);
    151151
    152         TSQLRow *row;
    153 
    154152        // Create TGraph objects
    155153        TGraph &gt = res.GetFieldCount()>4 ? *new TGraphErrors : *new TGraph;
     
    177175
    178176        // Loop over the data
     177        TSQLRow *row=0;
    179178        while ((row=res.Next()))
    180179        {
     
    185184            const char *snum = res.GetFieldCount()>3 ? (*row)[3] : 0;
    186185            const char *verr = res.GetFieldCount()>4 ? (*row)[5] : 0;
     186
     187            delete row;
     188
    187189            if (!date || !val || !zd)
    188190                continue;
  • trunk/MagicSoft/Mars/datacenter/macros/plotrundb.C

    r8212 r8707  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1.2 2006-11-03 10:52:36 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1.3 2007-08-24 14:37:58 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    131131        gStyle->SetOptStat(111111);
    132132
    133         TSQLRow *row;
    134 
    135133        // Create TGraph objects
    136134        TGraph &gt = res.GetFieldCount()>4 ? *new TGraphErrors : *new TGraph;
     
    158156
    159157        // Loop over the data
     158        TSQLRow *row=0;
    160159        while ((row=res.Next()))
    161160        {
     
    166165            const char *snum = res.GetFieldCount()>3 ? (*row)[3] : 0;
    167166            const char *verr = res.GetFieldCount()>4 ? (*row)[5] : 0;
     167
     168            delete row;
     169
    168170            if (!date || !val || !zd)
    169171                continue;
Note: See TracChangeset for help on using the changeset viewer.