Replaced throw() with noexcept and removed some unneeded ';'.
This commit is contained in:
		
							parent
							
								
									7674bdb40a
								
							
						
					
					
						commit
						67b633880b
					
				@ -71,8 +71,8 @@ inline const char* to_str(spdlog::level::level_enum l)
 | 
			
		||||
class spdlog_ex : public std::exception
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    spdlog_ex(const std::string& msg) :_msg(msg) {};
 | 
			
		||||
    const char* what() const throw() override
 | 
			
		||||
    spdlog_ex(const std::string& msg) :_msg(msg) {}
 | 
			
		||||
    const char* what() const noexcept override
 | 
			
		||||
    {
 | 
			
		||||
        return _msg.c_str();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,7 @@ public:
 | 
			
		||||
    explicit file_helper(bool auto_flush):
 | 
			
		||||
        _fd(nullptr),
 | 
			
		||||
        _auto_flush(auto_flush)
 | 
			
		||||
    {};
 | 
			
		||||
    {}
 | 
			
		||||
 | 
			
		||||
    file_helper(const file_helper&) = delete;
 | 
			
		||||
    file_helper& operator=(const file_helper&) = delete;
 | 
			
		||||
 | 
			
		||||
@ -56,7 +56,7 @@ public:
 | 
			
		||||
    {
 | 
			
		||||
        std::lock_guard<Mutex> lock(_mutex);
 | 
			
		||||
        _sink_it(msg);
 | 
			
		||||
    };
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
@ -75,7 +75,7 @@ public:
 | 
			
		||||
    void log(const details::log_msg &msg) override
 | 
			
		||||
    {
 | 
			
		||||
        ::syslog(syslog_prio_from_level(msg), "%s", msg.formatted.str().c_str());
 | 
			
		||||
    };
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user