소스 검색

LibVT: Clear the href ID by setting it to None instead of ""

Ali Mohammad Pur 1 년 전
부모
커밋
f10dc9cb14
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Userland/Libraries/LibVT/Terminal.cpp

+ 2 - 2
Userland/Libraries/LibVT/Terminal.cpp

@@ -1275,8 +1275,8 @@ void Terminal::execute_osc_sequence(OscParameters parameters, u8 last_byte)
             dbgln("Attempted to set href but gave too few parameters");
         } else if (parameters[1].is_empty() && parameters[2].is_empty()) {
             // Clear hyperlink
-            m_current_state.attribute.href = DeprecatedString();
-            m_current_state.attribute.href_id = DeprecatedString();
+            m_current_state.attribute.href = {};
+            m_current_state.attribute.href_id = {};
         } else {
             m_current_state.attribute.href = stringview_ify(2);
             // FIXME: Respect the provided ID