mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:02:44 +00:00 
			
		
		
		
	HackStudio: Don't take LexicalPath as argument
Also make use of LexicalPath::has_extension() in one place.
This commit is contained in:
		
							parent
							
								
									4befc2c282
								
							
						
					
					
						commit
						d410449d87
					
				
					 4 changed files with 19 additions and 17 deletions
				
			
		|  | @ -38,7 +38,7 @@ ProjectFile::ProjectFile(const String& name) | |||
| GUI::TextDocument& ProjectFile::document() const | ||||
| { | ||||
|     if (!m_document) { | ||||
|         m_document = CodeDocument::create(LexicalPath(m_name)); | ||||
|         m_document = CodeDocument::create(m_name); | ||||
|         auto file_or_error = Core::File::open(m_name, Core::File::ReadOnly); | ||||
|         if (file_or_error.is_error()) { | ||||
|             warnln("Couldn't open '{}': {}", m_name, file_or_error.error()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling