Ignore:
Timestamp:
06/23/16 00:15:59 (8 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/loggers/loggers.cpp

    r511 r522  
    155155string LoggerToMemory::getCountSummary() const
    156156{
    157 if (getInfoCount())
     157        if (getInfoCount())
    158158        {
    159         string msg;
    160         if (getErrorCount())
    161                 msg=ssprintf("%d error(s)",getErrorCount());
    162         int w;
    163         if (w=getWarningCount()-getErrorCount())
    164                 msg+=ssprintf("%s%d warning(s)",(getErrorCount()?", ":""),w);
    165         if (w=getInfoCount()-getWarningCount())
    166                 msg+=ssprintf("%s%d message(s)",(getWarningCount()?", ":""),w);
    167         return msg;
     159                string msg;
     160                if (getErrorCount())
     161                        msg = ssprintf("%d error(s)", getErrorCount());
     162                int w;
     163                if (w = getWarningCount() - getErrorCount())
     164                        msg += ssprintf("%s%d warning(s)", (getErrorCount() ? ", " : ""), w);
     165                if (w = getInfoCount() - getWarningCount())
     166                        msg += ssprintf("%s%d message(s)", (getWarningCount() ? ", " : ""), w);
     167                return msg;
    168168        }
    169 return string("");
     169        return string("");
    170170}
    171171
Note: See TracChangeset for help on using the changeset viewer.