mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 07:52:42 +01:00 
			
		
		
		
	Fix compile-time warning of catch by value
This commit is contained in:
		| @@ -245,7 +245,7 @@ void waybar::modules::MPD::tryConnect() { | |||||||
|  |  | ||||||
|   try { |   try { | ||||||
|     checkErrors(connection_.get()); |     checkErrors(connection_.get()); | ||||||
|   } catch (std::runtime_error e) { |   } catch (std::runtime_error &e) { | ||||||
|     std::cerr << module_name_ << ": Failed to connect to MPD: " << e.what() << std::endl; |     std::cerr << module_name_ << ": Failed to connect to MPD: " << e.what() << std::endl; | ||||||
|     connection_.reset(); |     connection_.reset(); | ||||||
|     alternate_connection_.reset(); |     alternate_connection_.reset(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Cole Helbling
					Cole Helbling