mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:22:45 +00:00 
			
		
		
		
	AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
		
							parent
							
								
									f74251606d
								
							
						
					
					
						commit
						6e19ab2bbc
					
				
					 2006 changed files with 11635 additions and 11636 deletions
				
			
		|  | @ -184,7 +184,7 @@ void PDFViewerWidget::initialize_toolbar(GUI::Toolbar& toolbar) | |||
| 
 | ||||
| void PDFViewerWidget::open_file(Core::File& file) | ||||
| { | ||||
|     window()->set_title(String::formatted("{} - PDF Viewer", file.filename())); | ||||
|     window()->set_title(DeprecatedString::formatted("{} - PDF Viewer", file.filename())); | ||||
| 
 | ||||
|     auto handle_error = [&]<typename T>(PDF::PDFErrorOr<T> maybe_error) { | ||||
|         if (maybe_error.is_error()) { | ||||
|  | @ -214,7 +214,7 @@ void PDFViewerWidget::open_file(Core::File& file) | |||
|     if (handle_error(m_viewer->set_document(document))) | ||||
|         return; | ||||
| 
 | ||||
|     m_total_page_label->set_text(String::formatted("of {}", document->get_page_count())); | ||||
|     m_total_page_label->set_text(DeprecatedString::formatted("of {}", document->get_page_count())); | ||||
| 
 | ||||
|     m_page_text_box->set_enabled(true); | ||||
|     m_page_text_box->set_current_number(1, GUI::AllowCallback::No); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh