소스 검색

LibGUI: Set default value of LinkLabel text argument to a null string

The regular Label also does this, being able to call the constructor
with no arguments is required for REGISTER_WIDGET(GUI, LinkLabel).
Linus Groh 4 년 전
부모
커밋
a514f2cbfd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libraries/LibGUI/LinkLabel.h

+ 1 - 1
Libraries/LibGUI/LinkLabel.h

@@ -37,7 +37,7 @@ public:
     Function<void()> on_click;
 
 private:
-    explicit LinkLabel(String);
+    explicit LinkLabel(String text = {});
 
     virtual void mousedown_event(MouseEvent&) override;
     virtual void paint_event(PaintEvent&) override;