Changeset 4981


Ignore:
Timestamp:
09/13/04 14:43:20 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusArray.cc

    r4966 r4981  
    6161    delete d;
    6262    return 0;
    63 }
    64 
    65 TCanvas *MStatusArray::FindCanvas(const char *name) const
    66 {
    67     TObject *o = TObjArray::FindObject(name);
    68     return o->InheritsFrom(TCanvas::Class()) ? (TCanvas*)o : 0;
    6963}
    7064
     
    135129}
    136130
     131TCanvas *MStatusArray::FindCanvas(const char *name) const
     132{
     133    TObject *o = TObjArray::FindObject(name);
     134    if (!o)
     135        return 0;
     136
     137    return o->InheritsFrom(TCanvas::Class()) ? (TCanvas*)o : 0;
     138}
     139
     140
    137141TObject *MStatusArray::FindObjectInCanvas(const char *object, const char *base, const char *canvas) const
    138142{
Note: See TracChangeset for help on using the changeset viewer.