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

Method CloseConnection

libraries/lib-project-file-io/ProjectFileIO.cpp:545–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545bool ProjectFileIO::CloseConnection()
546{
547 auto &curConn = CurrConn();
548 if (!curConn)
549 return false;
550
551 if (!curConn->Close())
552 {
553 return false;
554 }
555 curConn.reset();
556
557 SetFileName({});
558
559 return true;
560}
561
562// Put the current database connection aside, keeping it open, so that
563// another may be opened with OpenConnection()

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected