Skip to content
Snippets Groups Projects
Commit 5f0242c0 authored by florian's avatar florian
Browse files

MAINT: Replace some types by auto for readability

parent 19316815
No related branches found
No related tags found
3 merge requests!12F consolidation,!9Draft: API: remove UniqueResult, lower-case at, size for ResultSet,!8ENH: Add retrieval and queries to Extern C interface
Pipeline #11619 failed
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -250,7 +250,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
caosdb_connection_connection *connection,
caosdb_transaction_transaction *out),
{
caosdb::connection::Connection *wrapped_connection =
auto *wrapped_connection =
static_cast<caosdb::connection::Connection *>(
connection->wrapped_connection);
out->wrapped_transaction =
......@@ -263,18 +263,17 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
caosdb_transaction_transaction *transaction,
const char *id),
{
caosdb::transaction::Transaction *wrapped_transaction =
auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction);
wrapped_transaction->RetrieveById(id);
return 0;
return wrapped_transaction->RetrieveById(std::string(id));
})
ERROR_RETURN_CODE(GENERIC_ERROR,
int caosdb_transaction_transaction_execute(
caosdb_transaction_transaction *transaction),
{
caosdb::transaction::Transaction *wrapped_transaction =
auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction);
wrapped_transaction->Execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment