Skip to content

Commit 5226ae4

Browse files
committed
Modernize
1 parent 93d03f5 commit 5226ae4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/FileLogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace vx {
115115
m_file.open( m_filename, std::ofstream::out | std::ofstream::app );
116116
m_lastReopen = std::chrono::system_clock::now();
117117
}
118-
catch ( const std::exception & /*_exception*/ ) {
118+
catch ( [[maybe_unused]] const std::exception &_exception ) {
119119

120120
m_file.close();
121121
throw;

source/Logger.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333

3434
namespace vx {
3535

36-
Logger::Logger( const std::unordered_map<std::string, std::string> & /*_configuration*/ ) {}
36+
Logger::Logger( [[maybe_unused]] const std::unordered_map<std::string, std::string> &_configuration ) {}
3737

38-
void Logger::log( const std::string & /*_message*/, const Severity /*_severity*/ ) { /* /dev/null logger */ }
38+
void Logger::log( [[maybe_unused]] const std::string &_message, [[maybe_unused]] const Severity _severity ) { /* /dev/null logger */ }
3939

40-
void Logger::log( const std::string & /*_message*/ ) { /* /dev/null logger */ }
40+
void Logger::log( [[maybe_unused]] const std::string &_message ) { /* /dev/null logger */ }
4141
}

0 commit comments

Comments
 (0)