ladybird/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp

25 lines
376 B
C++
Raw Normal View History

2020-03-14 16:31:40 -03:00
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
2020-03-14 16:31:40 -03:00
*/
#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();
}
}
}