mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:30:05 +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
				
			
		|  | @ -15,7 +15,7 @@ class DrawLayerImpl; | |||
| class DrawLayer : public GenericLayer | ||||
| { | ||||
| public: | ||||
|    explicit DrawLayer(std::shared_ptr<MapContext> context); | ||||
|    explicit DrawLayer(const std::shared_ptr<MapContext>& context); | ||||
|    virtual ~DrawLayer(); | ||||
| 
 | ||||
|    virtual void Initialize(); | ||||
|  | @ -23,7 +23,7 @@ public: | |||
|    virtual void Deinitialize(); | ||||
| 
 | ||||
| protected: | ||||
|    void AddDrawItem(std::shared_ptr<gl::draw::DrawItem> drawItem); | ||||
|    void AddDrawItem(const std::shared_ptr<gl::draw::DrawItem>& drawItem); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<DrawLayerImpl> p; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat