mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:32:44 +00:00 
			
		
		
		
	Kernel: Use operator ""sv in all class_name() implementations
				
					
				
			Previously there was a mix of returning plain strings and returning explicit string views using `operator ""sv`. This change switches them all to standardized on `operator ""sv` as it avoids a call to strlen.
This commit is contained in:
		
							parent
							
								
									836c22ea13
								
							
						
					
					
						commit
						5f1c98e576
					
				
					 39 changed files with 39 additions and 39 deletions
				
			
		|  | @ -43,7 +43,7 @@ public: | |||
|     virtual KResult chown(OpenFileDescription&, UserID, GroupID) override; | ||||
|     virtual KResult chmod(OpenFileDescription&, mode_t) override; | ||||
| 
 | ||||
|     virtual StringView class_name() const override { return "InodeFile"; } | ||||
|     virtual StringView class_name() const override { return "InodeFile"sv; } | ||||
| 
 | ||||
|     virtual bool is_seekable() const override { return true; } | ||||
|     virtual bool is_inode() const override { return true; } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brian Gianforcaro
						Brian Gianforcaro