Instance: add noexcept
				
					
				
			This commit is contained in:
		@@ -131,11 +131,11 @@ struct Instance final
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Wrapper for EventLoop::Break().  Call to initiate shutdown.
 | 
						 * Wrapper for EventLoop::Break().  Call to initiate shutdown.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	void Break() {
 | 
						void Break() noexcept {
 | 
				
			||||||
		event_loop.Break();
 | 
							event_loop.Break();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void EmitIdle(unsigned mask) {
 | 
						void EmitIdle(unsigned mask) noexcept {
 | 
				
			||||||
		idle_monitor.OrMask(mask);
 | 
							idle_monitor.OrMask(mask);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -154,7 +154,7 @@ struct Instance final
 | 
				
			|||||||
	 * if this MPD configuration has no database (no
 | 
						 * if this MPD configuration has no database (no
 | 
				
			||||||
	 * music_directory was configured).
 | 
						 * music_directory was configured).
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	Database *GetDatabase() {
 | 
						Database *GetDatabase() noexcept {
 | 
				
			||||||
		return database.get();
 | 
							return database.get();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -194,7 +194,7 @@ private:
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* callback for #idle_monitor */
 | 
						/* callback for #idle_monitor */
 | 
				
			||||||
	void OnIdle(unsigned mask);
 | 
						void OnIdle(unsigned mask) noexcept;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -360,7 +360,7 @@ Instance::BeginShutdownPartitions() noexcept
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
Instance::OnIdle(unsigned flags)
 | 
					Instance::OnIdle(unsigned flags) noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	/* send "idle" notifications to all subscribed
 | 
						/* send "idle" notifications to all subscribed
 | 
				
			||||||
	   clients */
 | 
						   clients */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user