Pass in params by const ref
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
		
							parent
							
								
									78d979567f
								
							
						
					
					
						commit
						1614603165
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -215,7 +215,7 @@ string Settings::pack()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Settings::unpack(string pack) {
 | 
					void Settings::unpack(const string &pack) {
 | 
				
			||||||
    Strings lines = tokenizeString<Strings>(pack, "\n");
 | 
					    Strings lines = tokenizeString<Strings>(pack, "\n");
 | 
				
			||||||
    foreach (Strings::iterator, i, lines) {
 | 
					    foreach (Strings::iterator, i, lines) {
 | 
				
			||||||
        string::size_type eq = i->find('=');
 | 
					        string::size_type eq = i->find('=');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,7 +25,7 @@ struct Settings {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string pack();
 | 
					    string pack();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void unpack(string pack);
 | 
					    void unpack(const string &pack);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SettingsMap getOverrides();
 | 
					    SettingsMap getOverrides();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue