Форматирование кода

This commit is contained in:
Andrei Astafev 2019-10-21 20:35:50 +03:00
parent 671f0f3ec4
commit 18ecd62eb7
7 changed files with 57 additions and 57 deletions

View File

@ -234,16 +234,16 @@ whereami_path_t::operator const whereami_string_t&() const
#endif // if defined( WHEREAMI_CXX11 ) #endif // if defined( WHEREAMI_CXX11 )
#if defined( WHEREAMI_CXX11 ) #if defined( WHEREAMI_CXX11 )
whereami_path_t::whereami_path_t( whereami_string_t&& path, int dirname_length ) noexcept whereami_path_t::whereami_path_t( whereami_string_t&& path, int dirname_length ) noexcept :
: m_path( std::move( path ) ), m_path ( std::move( path ) ),
m_dirnameLength( dirname_length ) m_dirnameLength( dirname_length )
{ {
} }
#else #else
whereami_path_t::whereami_path_t( whereami_string_t& path, int dirname_length ) whereami_path_t::whereami_path_t( whereami_string_t& path, int dirname_length ) :
: m_path( path ), m_path ( path ),
m_dirnameLength( dirname_length ) m_dirnameLength( dirname_length )
{ {
} }

View File

@ -9,21 +9,21 @@ Logger default_logger( "default" );
Logger::Logger( std::string name ) : Logger::Logger( std::string name ) :
m_logger( nullptr ), m_logger ( nullptr ),
m_name( std::move( name ) ), m_name ( std::move( name ) ),
m_outputPattern( "[%H:%M:%S %z] [%n] [%^---%L---%$] %v" ), m_outputPattern ( "[%H:%M:%S %z] [%n] [%^---%L---%$] %v" ),
m_baseFileName( "default" ), m_baseFileName ( "default" ),
m_maxRotatingFileSize( rotatingFileSize ), m_maxRotatingFileSize ( rotatingFileSize ),
m_maxRotatingFilesCount( 3 ), m_maxRotatingFilesCount( 3 ),
m_outputLevel( spdlog::level::trace ), m_outputLevel ( spdlog::level::trace ),
m_flushLevel( spdlog::level::warn ), m_flushLevel ( spdlog::level::warn ),
m_nullSink( nullptr ), m_nullSink ( nullptr ),
m_stdoutSink( nullptr ), m_stdoutSink ( nullptr ),
m_stderrSink( nullptr ), m_stderrSink ( nullptr ),
m_syslogSink( nullptr ), m_syslogSink ( nullptr ),
m_basicFileSink( nullptr ), m_basicFileSink ( nullptr ),
m_rotatingFileSink( nullptr ), m_rotatingFileSink ( nullptr ),
m_dailyFileSink( nullptr ) m_dailyFileSink ( nullptr )
{ {
m_logger = std::make_shared< spdlog::logger >( m_name, nullptr ); m_logger = std::make_shared< spdlog::logger >( m_name, nullptr );
m_logger->sinks().clear(); m_logger->sinks().clear();