diff options
Diffstat (limited to 'src/Metadata.cpp')
-rw-r--r-- | src/Metadata.cpp | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/Metadata.cpp b/src/Metadata.cpp index e75cf19..929b090 100644 --- a/src/Metadata.cpp +++ b/src/Metadata.cpp @@ -1,18 +1,5 @@ -/* This file is part of Patchage. - * Copyright 2014-2020 David Robillard <d@drobilla.net> - * - * Patchage is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free - * Software Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * - * You should have received a copy of the GNU General Public License - * along with Patchage. If not, see <http://www.gnu.org/licenses/>. - */ +// Copyright 2014-2020 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: GPL-3.0-or-later #include "Metadata.hpp" @@ -21,13 +8,12 @@ #include "PortID.hpp" #include "PortInfo.hpp" -#include <boost/optional/optional.hpp> - +#include <optional> #include <utility> namespace patchage { -boost::optional<ClientInfo> +std::optional<ClientInfo> Metadata::client(const ClientID& id) const { const auto i = _client_data.find(id); @@ -38,7 +24,7 @@ Metadata::client(const ClientID& id) const return i->second; } -boost::optional<PortInfo> +std::optional<PortInfo> Metadata::port(const PortID& id) const { const auto i = _port_data.find(id); |