mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 15:40:06 +00:00 
			
		
		
		
	Location Markers Part2 clang-format/tidy suggestions
This commit is contained in:
		
							parent
							
								
									2fd94c6575
								
							
						
					
					
						commit
						7edafe8d78
					
				
					 4 changed files with 6 additions and 6 deletions
				
			
		|  | @ -470,7 +470,7 @@ std::optional<types::MarkerIconInfo> | ||||||
| MarkerManager::get_icon(const std::string& name) | MarkerManager::get_icon(const std::string& name) | ||||||
| { | { | ||||||
|    const std::shared_lock lock(p->markerIconsLock_); |    const std::shared_lock lock(p->markerIconsLock_); | ||||||
|    auto it = p->markerIcons_.find(name); |    auto                   it = p->markerIcons_.find(name); | ||||||
|    if (it != p->markerIcons_.end()) |    if (it != p->markerIcons_.end()) | ||||||
|    { |    { | ||||||
|       return it->second; |       return it->second; | ||||||
|  |  | ||||||
|  | @ -110,8 +110,8 @@ static void LoadTextures() | ||||||
| 
 | 
 | ||||||
| void BuildAtlas() | void BuildAtlas() | ||||||
| { | { | ||||||
|       util::TextureAtlas& textureAtlas = util::TextureAtlas::Instance(); |    util::TextureAtlas& textureAtlas = util::TextureAtlas::Instance(); | ||||||
|       textureAtlas.BuildAtlas(atlasWidth, atlasHeight); |    textureAtlas.BuildAtlas(atlasWidth, atlasHeight); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace ResourceManager
 | } // namespace ResourceManager
 | ||||||
|  |  | ||||||
|  | @ -219,7 +219,7 @@ public: | ||||||
|    std::shared_ptr<model::LayerModel> layerModel_ { |    std::shared_ptr<model::LayerModel> layerModel_ { | ||||||
|       model::LayerModel::Instance()}; |       model::LayerModel::Instance()}; | ||||||
| 
 | 
 | ||||||
|    ui::EditMarkerDialog* editMarkerDialog_; |    ui::EditMarkerDialog* editMarkerDialog_ {nullptr}; | ||||||
| 
 | 
 | ||||||
|    std::shared_ptr<manager::HotkeyManager> hotkeyManager_ { |    std::shared_ptr<manager::HotkeyManager> hotkeyManager_ { | ||||||
|       manager::HotkeyManager::Instance()}; |       manager::HotkeyManager::Instance()}; | ||||||
|  |  | ||||||
|  | @ -50,9 +50,9 @@ struct MarkerIconInfo | ||||||
|        qIcon {QIcon(QString::fromStdString(path))}, |        qIcon {QIcon(QString::fromStdString(path))}, | ||||||
|        image {} |        image {} | ||||||
|    { |    { | ||||||
|       auto qName = QString::fromStdString(name); |       auto        qName = QString::fromStdString(name); | ||||||
|       QStringList parts = qName.split("location-"); |       QStringList parts = qName.split("location-"); | ||||||
|       shortName = parts.last().toStdString(); |       shortName         = parts.last().toStdString(); | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    // Initializer for custom icons (which use a file path)
 |    // Initializer for custom icons (which use a file path)
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak