commit e58dbee7eb3eb08b5bb7835c7b182b95f50abf16 parent 726a0b7e3d8d74cbb100ba3a088f39ced814af33 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Apr 23 23:13:37 +0300 Tiny simplification Diffstat:
log.h | | | 3 | +-- |
diff --git a/log.h b/log.h @@ -18,8 +18,7 @@ void logger_log( LogLevel level, const char * message ); template< typename... Rest > void logger_log( LogLevel level, const char * fmt, Rest... rest ) { - str< 1024 > buf; - buf.appendf( fmt, rest... ); + str< 1024 > buf( fmt, rest... ); logger_log( level, buf.c_str() ); }