Skip to content

Commit c75c32a

Browse files
committed
not needed
1 parent df88fb2 commit c75c32a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mongocxx/database.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,8 @@ collection database::_create_collection(const client_session* session,
282282
}
283283

284284
libbson::scoped_bson_t opts_bson{options_builder.view()};
285-
auto str_name = bsoncxx::string::to_string(name);
286285
auto result = libmongoc::database_create_collection(
287-
_get_impl().database_t, str_name.c_str(), opts_bson.bson(), &error);
286+
_get_impl().database_t, bsoncxx::string::to_string(name).c_str(), opts_bson.bson(), &error);
288287

289288
if (!result) {
290289
throw_exception<operation_exception>(error);

0 commit comments

Comments
 (0)