Port rpmostree-db-builtin-version to C++

Prep for using https://cxx.rs/
This commit is contained in:
Colin Walters 2020-12-21 16:08:51 +00:00 committed by OpenShift Merge Robot
parent 604145e1f9
commit 2ada9808ec
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \
src/app/rpmostree-builtin-finalize-deployment.cxx \
src/app/rpmostree-db-builtin-diff.cxx \
src/app/rpmostree-db-builtin-list.cxx \
src/app/rpmostree-db-builtin-version.c \
src/app/rpmostree-db-builtin-version.cxx \
src/app/rpmostree-dbus-helpers.cxx \
src/app/rpmostree-dbus-helpers.h \
src/app/rpmostree-override-builtins.h \

View File

@ -34,7 +34,7 @@ _builtin_db_version (OstreeRepo *repo, GPtrArray *revs,
{
for (guint num = 0; num < revs->len; num++)
{
const char *rev = revs->pdata[num];
auto rev = static_cast<const char *>(revs->pdata[num]);
g_autoptr(RpmRevisionData) rpmrev = rpmrev_new (repo, rev, NULL, cancellable, error);
if (!rpmrev)