refactor: Remove c_str from util/check

This commit is contained in:
MarcoFalke
2023-01-24 12:07:03 +01:00
parent fcff639af1
commit fab958290b
3 changed files with 10 additions and 7 deletions

View File

@@ -663,7 +663,7 @@ BerkeleyCursor::BerkeleyCursor(BerkeleyDatabase& database)
}
int ret = database.m_db->cursor(nullptr, &m_cursor, 0);
if (ret != 0) {
throw std::runtime_error(STR_INTERNAL_BUG(strprintf("BDB Cursor could not be created. Returned %d", ret).c_str()));
throw std::runtime_error(STR_INTERNAL_BUG(strprintf("BDB Cursor could not be created. Returned %d", ret)));
}
}