Port rpmostree-db-builtin-version to C++
Prep for using https://cxx.rs/
This commit is contained in:
parent
604145e1f9
commit
2ada9808ec
@ -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 \
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user