Changeset 1075 for cpp/common/loggers
- Timestamp:
- 02/16/21 06:36:01 (4 years ago)
- Location:
- cpp/common/loggers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/loggers/loggers.cpp
r1037 r1075 16 16 void LoggerManager::send(int position, const char *obj, const char *method, int level, const char *msg) 17 17 { 18 if (position >= (int)loggers.size()) position = loggers.size() - 1;18 if (position >= int(loggers.size())) position = int(loggers.size()) - 1; 19 19 bool blocked = false; 20 20 for (int i = position; i >= 0; i--) … … 34 34 logger->manager = this; 35 35 loggers.push_back(logger); 36 return loggers.size() - 1;36 return int(loggers.size()) - 1; 37 37 } 38 38 … … 54 54 { 55 55 while (loggers.size() > 0) 56 remove( loggers.size() - 1);56 remove(int(loggers.size()) - 1); 57 57 } 58 58 -
cpp/common/loggers/loggers.h
r876 r1075 29 29 void send(const char *obj, const char *method, int level, const char *msg) 30 30 { 31 send( loggers.size() -1, obj, method, level, msg);31 send(int(loggers.size())-1, obj, method, level, msg); 32 32 } 33 33 ~LoggerManager() { removeAll(); }
Note: See TracChangeset
for help on using the changeset viewer.