Skip to content

Commit e06636c

Browse files
author
Clement Champetier
committed
Logger: log function takes const arguments
1 parent 5f1daf6 commit e06636c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AvTranscoder/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void Logger::setLogLevel( const int level )
2424
av_log_set_level( level );
2525
}
2626

27-
void Logger::log( int level, const std::string& msg )
27+
void Logger::log( const int level, const std::string& msg )
2828
{
2929
std::string avTranscoderMsg( "[avTranscoder - " );
3030

src/AvTranscoder/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class AvExport Logger
8585
* @param msg: the message will be prefixed by '[avTranscoder - <level>]'
8686
* @param msg: the message will be suffixed by '\n'
8787
*/
88-
static void log( int level, const std::string& msg );
88+
static void log( const int level, const std::string& msg );
8989

9090
/**
9191
* @brief Log ffmpeg/libav and avtranscoder informations in a text file.

0 commit comments

Comments
 (0)