Skip to content

Commit 117f2b1

Browse files
committed
Updated amalgamated header
1 parent dedbf10 commit 117f2b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/sqlite_orm/sqlite_orm.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -13919,20 +13919,20 @@ namespace sqlite_orm {
1391913919
namespace internal {
1392013920

1392113921
struct connection_holder {
13922-
connection_holder(std::string fileName, std::function<void(sqlite3*)> onAfterOpen) :
13923-
_onAfterOpen{std::move(onAfterOpen)}, fileName(std::move(fileName)) {}
13922+
connection_holder(std::string filename, std::function<void(sqlite3*)> onAfterOpen) :
13923+
_onAfterOpen{std::move(onAfterOpen)}, filename(std::move(filename)) {}
1392413924

1392513925
connection_holder(const connection_holder&) = delete;
1392613926

1392713927
connection_holder(const connection_holder& other, std::function<void(sqlite3*)> onAfterOpen) :
13928-
_onAfterOpen{std::move(onAfterOpen)}, fileName{other.fileName} {}
13928+
_onAfterOpen{std::move(onAfterOpen)}, filename{other.filename} {}
1392913929

1393013930
void retain() {
1393113931
// first one opens the connection.
1393213932
// we presume that the connection is opened once in a single-threaded context [also open forever].
1393313933
// therefore we can just use an atomic increment but don't need sequencing due to `prevCount > 0`.
1393413934
if (_retainCount.fetch_add(1, std::memory_order_relaxed) == 0) {
13935-
int rc = sqlite3_open_v2(this->fileName.c_str(),
13935+
int rc = sqlite3_open_v2(this->filename.c_str(),
1393613936
&this->db,
1393713937
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
1393813938
nullptr);
@@ -13981,7 +13981,7 @@ namespace sqlite_orm {
1398113981
const std::function<void(sqlite3* db)> _onAfterOpen;
1398213982

1398313983
public:
13984-
const std::string fileName;
13984+
const std::string filename;
1398513985
};
1398613986

1398713987
struct connection_ref {

0 commit comments

Comments
 (0)