mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +00:00 
			
		
		
		
	Clean up placefile shared pointer usage with const references
This commit is contained in:
		
							parent
							
								
									232fafc9fa
								
							
						
					
					
						commit
						9955c4ccbe
					
				
					 12 changed files with 33 additions and 31 deletions
				
			
		|  | @ -22,9 +22,9 @@ static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | |||
| class PlacefileLayer::Impl | ||||
| { | ||||
| public: | ||||
|    explicit Impl(PlacefileLayer*             self, | ||||
|                  std::shared_ptr<MapContext> context, | ||||
|                  const std::string&          placefileName) : | ||||
|    explicit Impl(PlacefileLayer*                    self, | ||||
|                  const std::shared_ptr<MapContext>& context, | ||||
|                  const std::string&                 placefileName) : | ||||
|        self_ {self}, | ||||
|        placefileName_ {placefileName}, | ||||
|        placefileIcons_ {std::make_shared<gl::draw::PlacefileIcons>(context)}, | ||||
|  | @ -53,8 +53,8 @@ public: | |||
|    std::shared_ptr<gl::draw::PlacefileText>     placefileText_; | ||||
| }; | ||||
| 
 | ||||
| PlacefileLayer::PlacefileLayer(std::shared_ptr<MapContext> context, | ||||
|                                const std::string&          placefileName) : | ||||
| PlacefileLayer::PlacefileLayer(const std::shared_ptr<MapContext>& context, | ||||
|                                const std::string& placefileName) : | ||||
|     DrawLayer(context), | ||||
|     p(std::make_unique<PlacefileLayer::Impl>(this, context, placefileName)) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat