mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:50:06 +00:00 
			
		
		
		
	Adding const to locks in AlertProxyModel
This commit is contained in:
		
							parent
							
								
									73355c9424
								
							
						
					
					
						commit
						3c5b126c67
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -90,7 +90,7 @@ AlertProxyModel::Impl::~Impl() | |||
| { | ||||
|    try | ||||
|    { | ||||
|       std::unique_lock lock(alertMutex_); | ||||
|       const std::unique_lock lock(alertMutex_); | ||||
|       alertUpdateTimer_.cancel(); | ||||
|    } | ||||
|    catch (const std::exception& ex) | ||||
|  | @ -104,7 +104,7 @@ void AlertProxyModel::Impl::UpdateAlerts() | |||
|    logger_->trace("UpdateAlerts"); | ||||
| 
 | ||||
|    // Take a unique lock before modifying feature lists
 | ||||
|    std::unique_lock lock(alertMutex_); | ||||
|    const std::unique_lock lock(alertMutex_); | ||||
| 
 | ||||
|    // Re-evaluate for expired alerts
 | ||||
|    if (alertActiveFilterEnabled_) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat