Changeset 2079 for trunk/MagicSoft


Ignore:
Timestamp:
05/06/03 14:17:36 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2077 r2079  
    22
    33 2003/05/06: Abelardo Moralejo
     4 
    45   * mhistmc/MHMcCollectionArea.cc
    56     - Added:  delete &pally
    6 
    7  2003/05/06: Abelardo Moralejo
    87
    98   * mfilter/MFCT1SelFinal.cc
     
    2019       containing only triggers).
    2120
     21
     22
    2223 2003/05/06: Thomas Bretz
    2324 
     
    3435   * mhist/Makefile, mhist/HistLinkDef.h:
    3536     - removed MHRan*
     37
     38  * Makefile:
     39     - mranforest added
     40
     41  * mbase/MLog.cc:
     42    - sanity check in MLog::Output (len>0)
    3643
    3744
  • trunk/MagicSoft/Mars/mbase/MLog.cc

    r2058 r2079  
    215215        }
    216216
    217     // Check for EOL
    218     const Bool_t endline = fBase[len-1]=='\n';
    219     // output text to screen (without trailing '\0' or '\n')
    220     out << TString(fBase, len-1);
    221     // reset colors if working with colors
    222     if (!TestBit(eNoColors))
    223         out << kReset;
    224     // output EOL of check found EOL
    225     if (endline)
    226         out << '\n';
     217    if (len>0)
     218    {
     219        // Check for EOL
     220        const Bool_t endline = fBase[len-1]=='\n';
     221        // output text to screen (without trailing '\0' or '\n')
     222        out << TString(fBase, len-1);
     223        // reset colors if working with colors
     224        if (!TestBit(eNoColors))
     225            out << kReset;
     226        // output EOL of check found EOL
     227        if (endline)
     228            out << '\n';
     229    }
    227230    out.flush();
    228231}
Note: See TracChangeset for help on using the changeset viewer.