// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #include "profileviewfactory.h" #include "exportable.h" #include "profileview.h" #include std::unique_ptr ProfileViewFactory::build( Exportable const &profile, std::optional> base) const { auto profileView = std::make_unique(); ProfileView::Initializer pvInitializer(*profileView, base); profile.exportWith(pvInitializer); return std::move(profileView); }