Port rojig2commit to C++

Prep for using https://cxx.rs/
This commit is contained in:
Colin Walters 2020-12-19 15:48:44 +00:00 committed by OpenShift Merge Robot
parent 29dbeee72f
commit b62b9850c2
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \
if BUILDOPT_ROJIG if BUILDOPT_ROJIG
rpm_ostree_SOURCES += \ rpm_ostree_SOURCES += \
src/app/rpmostree-ex-builtin-commit2rojig.cxx \ src/app/rpmostree-ex-builtin-commit2rojig.cxx \
src/app/rpmostree-ex-builtin-rojig2commit.c \ src/app/rpmostree-ex-builtin-rojig2commit.cxx \
src/app/rpmostree-compose-builtin-rojig.c \ src/app/rpmostree-compose-builtin-rojig.c \
$(NULL) $(NULL)
endif endif

View File

@ -97,7 +97,7 @@ rpm_ostree_rojig2commit_context_new (RpmOstreeRojig2CommitContext **out_context,
if (opt_rpmmd_reposdir) if (opt_rpmmd_reposdir)
dnf_context_set_repo_dir (dnfctx, opt_rpmmd_reposdir); dnf_context_set_repo_dir (dnfctx, opt_rpmmd_reposdir);
*out_context = g_steal_pointer (&self); *out_context = util::move_nullify (self);
return TRUE; return TRUE;
} }