summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp
blob: 1c8b1466306b621fbdc5f7de5f5ba1460170db2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/Bindings/Wrapper.h>

namespace Web {
namespace Bindings {

Wrappable::~Wrappable()
{
}

void Wrappable::set_wrapper(Wrapper& wrapper)
{
    VERIFY(!m_wrapper);
    m_wrapper = wrapper.make_weak_ptr();
}

}
}