update log_message to take std::string rather than const char*
This commit is contained in:
parent
7a51b73680
commit
c7013d3eea
2 changed files with 3 additions and 3 deletions
|
|
@ -108,7 +108,7 @@ namespace fc
|
|||
/**
|
||||
* @param ctx - generally provided using the FC_LOG_CONTEXT(LEVEL) macro
|
||||
*/
|
||||
log_message( log_context ctx, const char* format, variant_object args = variant_object() );
|
||||
log_message( log_context ctx, std::string format, variant_object args = variant_object() );
|
||||
~log_message();
|
||||
|
||||
log_message( const variant& v );
|
||||
|
|
|
|||
|
|
@ -175,10 +175,10 @@ namespace fc
|
|||
log_message::log_message()
|
||||
:my( std::make_shared<detail::log_message_impl>() ){}
|
||||
|
||||
log_message::log_message( log_context ctx, const char* format, variant_object args )
|
||||
log_message::log_message( log_context ctx, std::string format, variant_object args )
|
||||
:my( std::make_shared<detail::log_message_impl>(std::move(ctx)) )
|
||||
{
|
||||
my->format = format;
|
||||
my->format = std::move(format);
|
||||
my->args = std::move(args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue