diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:17:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:41:56 +0100 |
commit | 2143da6434d3ee0d0e33c57533387b9f0f5fce30 (patch) | |
tree | 8e17e9def4c4fe384f9a19dfc63c7d79c17908b9 /Libraries/LibGUI/TextDocument.cpp | |
parent | 2e6ab5811720a41825e2f2a22b2ec3027e361099 (diff) | |
download | serenity-2143da6434d3ee0d0e33c57533387b9f0f5fce30.zip |
LibGUI: Add forwarding header
This patch adds <LibGUI/Forward.h> and uses it a bunch.
It also dragged various header dependency reduction changes into it.
Diffstat (limited to 'Libraries/LibGUI/TextDocument.cpp')
-rw-r--r-- | Libraries/LibGUI/TextDocument.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TextDocument.cpp b/Libraries/LibGUI/TextDocument.cpp index fd3d74afdf..3834419b02 100644 --- a/Libraries/LibGUI/TextDocument.cpp +++ b/Libraries/LibGUI/TextDocument.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/Badge.h> #include <AK/StringBuilder.h> #include <LibCore/Timer.h> #include <LibGUI/TextDocument.h> @@ -32,6 +33,11 @@ namespace GUI { +NonnullRefPtr<TextDocument> TextDocument::create(Client* client) +{ + return adopt(*new TextDocument(client)); +} + TextDocument::TextDocument(Client* client) { if (client) @@ -45,6 +51,10 @@ TextDocument::TextDocument(Client* client) }); } +TextDocument::~TextDocument() +{ +} + void TextDocument::set_text(const StringView& text) { m_client_notifications_enabled = false; |