MCPcopy Create free account
hub / github.com/audacity/audacity / Reopen

Method Reopen

libraries/lib-sqlite-helpers/sqlite/SafeConnection.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::shared_ptr<SafeConnection> SafeConnection::Reopen(
34 const Connection& prevConnection, OpenMode mode, ThreadMode threadMode,
35 Error* openError)
36{
37 auto connection = Connection::Reopen(prevConnection, mode, threadMode);
38
39 if (!connection)
40 {
41 if (openError)
42 *openError = connection.GetError();
43
44 return {};
45 }
46
47 return std::make_shared<SafeConnection>(Tag {}, std::move(*connection));
48}
49
50std::shared_ptr<SafeConnection> SafeConnection::Reopen(
51 sqlite3* prevConnection, OpenMode mode, ThreadMode threadMode,

Callers

nothing calls this directly

Calls 2

moveFunction · 0.85
GetErrorMethod · 0.45

Tested by

no test coverage detected