From 1ff161d91b65b4ca57ecffc4454b21caf3432fe0 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 18 Apr 2022 22:54:33 +0300 Subject: [PATCH] utils: add mu-option.cc Was missing. --- lib/utils/mu-option.cc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/utils/mu-option.cc diff --git a/lib/utils/mu-option.cc b/lib/utils/mu-option.cc new file mode 100644 index 00000000..a136b861 --- /dev/null +++ b/lib/utils/mu-option.cc @@ -0,0 +1,32 @@ +/* +** Copyright (C) 2022 Dirk-Jan C. Binnema +** +** This program 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, or (at your option) any +** later version. +** +** This program 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 more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software Foundation, +** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +** +*/ + +#include "mu-option.hh" +#include + +using namespace Mu; + +Mu::Option +Mu::to_string_opt_gchar(gchar*&& str) +{ + auto res = to_string_opt(str); + g_free(str); + + return res; +}