mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:22:43 +00:00 
			
		
		
		
	Ladybird/Qt: Make String allocation infallible
This commit is contained in:
		
							parent
							
								
									82c827fc56
								
							
						
					
					
						commit
						a21998003c
					
				
					 10 changed files with 27 additions and 32 deletions
				
			
		|  | @ -53,7 +53,7 @@ void WebSocketImplQt::connect(WebSocket::ConnectionInfo const& connection_info) | |||
|     if (connection_info.is_secure()) { | ||||
|         auto ssl_socket = make<QSslSocket>(); | ||||
|         ssl_socket->connectToHostEncrypted( | ||||
|             qstring_from_ak_string(connection_info.url().serialized_host().release_value_but_fixme_should_propagate_errors()), | ||||
|             qstring_from_ak_string(MUST(connection_info.url().serialized_host())), | ||||
|             connection_info.url().port_or_default()); | ||||
|         QObject::connect(ssl_socket.ptr(), &QSslSocket::alertReceived, [this](QSsl::AlertLevel level, QSsl::AlertType, QString const&) { | ||||
|             if (level == QSsl::AlertLevel::Fatal) | ||||
|  | @ -63,7 +63,7 @@ void WebSocketImplQt::connect(WebSocket::ConnectionInfo const& connection_info) | |||
|     } else { | ||||
|         m_socket = make<QTcpSocket>(); | ||||
|         m_socket->connectToHost( | ||||
|             qstring_from_ak_string(connection_info.url().serialized_host().release_value_but_fixme_should_propagate_errors()), | ||||
|             qstring_from_ak_string(MUST(connection_info.url().serialized_host())), | ||||
|             connection_info.url().port_or_default()); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn