Skip to content

Commit 54b0cac

Browse files
authored
Update main() declarations in examples (#1191)
1 parent ae714f4 commit 54b0cac

25 files changed

+25
-25
lines changed

examples/bsoncxx/builder_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
using namespace bsoncxx;
2323

24-
int main(int, char**) {
24+
int main() {
2525
// bsoncxx::builder::basic presents a BSON-construction interface familiar to users of the
2626
// server's
2727
// BSON library or the Java driver.

examples/bsoncxx/builder_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using namespace bsoncxx;
1919

20-
int main(int, char**) {
20+
int main() {
2121
// bsoncxx::builder::core is a low-level primitive that can be useful for building other
2222
// BSON abstractions. Most users should just use builder::stream or builder::basic.
2323

examples/bsoncxx/builder_list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
using namespace bsoncxx;
2222

23-
int main(int, char**) {
23+
int main() {
2424
using namespace bsoncxx::builder;
2525

2626
//

examples/bsoncxx/builder_stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
using namespace bsoncxx;
2121

22-
int main(int, char**) {
22+
int main() {
2323
using builder::stream::array;
2424
using builder::stream::document;
2525

examples/bsoncxx/builder_stream_customization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ range_kvp_appender<begin_t, end_t> make_range_kvp_appender(begin_t&& begin, end_
6868
std::forward<end_t>(end));
6969
}
7070

71-
int main(int, char**) {
71+
int main() {
7272
using builder::stream::array;
7373
using builder::stream::document;
7474
using builder::stream::finalize;

examples/bsoncxx/decimal128.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
using namespace bsoncxx;
2424

25-
int main(int, char**) {
25+
int main() {
2626
// Convert a string to BSON Decimal128.
2727
decimal128 d128;
2828
try {

examples/bsoncxx/getting_values.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
using namespace bsoncxx;
2525

26-
int main(int, char**) {
26+
int main() {
2727
using namespace builder::stream;
2828

2929
builder::stream::document build_doc;

examples/bsoncxx/view_and_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
using namespace bsoncxx;
3333

34-
int main(int, char**) {
34+
int main() {
3535
// This example will cover the read-only BSON interface.
3636

3737
// Lets first build up a non-trivial BSON document using the builder interface.

examples/mongocxx/aggregate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using bsoncxx::builder::basic::kvp;
2626
using bsoncxx::builder::basic::make_document;
2727

28-
int main(int, char**) {
28+
int main() {
2929
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3030
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3131
// must remain alive for as long as the driver is in use.

examples/mongocxx/automatic_client_side_field_level_encryption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bsoncxx::document::value doc_from_file(std::string path) {
9292
return bsoncxx::from_json(file_contents);
9393
}
9494

95-
int main(int, char**) {
95+
int main() {
9696
instance inst{};
9797

9898
// This must be the same master key that was used to create

examples/mongocxx/bulk_write.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using bsoncxx::builder::basic::kvp;
2626
using bsoncxx::builder::basic::make_document;
2727

28-
int main(int, char**) {
28+
int main() {
2929
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3030
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3131
// must remain alive for as long as the driver is in use.

examples/mongocxx/create.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using bsoncxx::builder::basic::kvp;
2626
using bsoncxx::builder::basic::make_array;
2727
using bsoncxx::builder::basic::make_document;
2828

29-
int main(int, char**) {
29+
int main() {
3030
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3131
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3232
// must remain alive for as long as the driver is in use.

examples/mongocxx/document_validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using bsoncxx::stdx::string_view;
2828
using mongocxx::collection;
2929
using mongocxx::validation_criteria;
3030

31-
int main(int, char**) {
31+
int main() {
3232
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3333
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3434
// must remain alive for as long as the driver is in use.

examples/mongocxx/exception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
using bsoncxx::builder::basic::kvp;
3131
using bsoncxx::builder::basic::make_document;
3232

33-
int main(int, char**) {
33+
int main() {
3434
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3535
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3636
// must remain alive for as long as the driver is in use.

examples/mongocxx/explicit_encryption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace mongocxx;
4444

4545
const int kKeyLength = 96;
4646

47-
int main(int, char**) {
47+
int main() {
4848
instance inst{};
4949

5050
// This must be the same master key that was used to create

examples/mongocxx/explicit_encryption_auto_decryption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace mongocxx;
4444

4545
const int kKeyLength = 96;
4646

47-
int main(int, char**) {
47+
int main() {
4848
instance inst{};
4949

5050
// This must be the same master key that was used to create

examples/mongocxx/index.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
using bsoncxx::builder::basic::kvp;
2222
using bsoncxx::builder::basic::make_document;
2323

24-
int main(int, char**) {
24+
int main() {
2525
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
2626
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
2727
// must remain alive for as long as the driver is in use.

examples/mongocxx/inserted_id.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
using bsoncxx::builder::basic::kvp;
2525
using bsoncxx::builder::basic::make_document;
2626

27-
int main(int, char**) {
27+
int main() {
2828
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
2929
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3030
// must remain alive for as long as the driver is in use.

examples/mongocxx/query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using bsoncxx::builder::basic::kvp;
2727
using bsoncxx::builder::basic::make_array;
2828
using bsoncxx::builder::basic::make_document;
2929

30-
int main(int, char**) {
30+
int main() {
3131
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3232
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3333
// must remain alive for as long as the driver is in use.

examples/mongocxx/query_projection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using bsoncxx::builder::basic::kvp;
2626
using bsoncxx::builder::basic::make_document;
2727

28-
int main(int, char**) {
28+
int main() {
2929
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
3030
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3131
// must remain alive for as long as the driver is in use.

examples/mongocxx/remove.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
using bsoncxx::builder::basic::kvp;
2222
using bsoncxx::builder::basic::make_document;
2323

24-
int main(int, char**) {
24+
int main() {
2525
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
2626
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
2727
// must remain alive for as long as the driver is in use.

examples/mongocxx/server_side_field_level_encryption_enforcement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ using namespace mongocxx;
4646

4747
const int kKeyLength = 96;
4848

49-
int main(int, char**) {
49+
int main() {
5050
instance inst{};
5151

5252
// This must be the same master key that was used to create

examples/mongocxx/tailable_cursor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void insert_docs(mongocxx::collection* coll) {
6868
}
6969
}
7070

71-
int main(int, char**) {
71+
int main() {
7272
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
7373
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
7474
// must remain alive for as long as the driver is in use.

examples/mongocxx/update.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using bsoncxx::builder::basic::kvp;
2323
using bsoncxx::builder::basic::make_array;
2424
using bsoncxx::builder::basic::make_document;
2525

26-
int main(int, char**) {
26+
int main() {
2727
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
2828
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
2929
// must remain alive for as long as the driver is in use.

examples/mongocxx/view_or_value_variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using bsoncxx::builder::basic::array;
2424
using bsoncxx::builder::basic::kvp;
2525
using bsoncxx::builder::basic::make_document;
2626

27-
int main(int, char**) {
27+
int main() {
2828
// The mongocxx::instance constructor and destructor initialize and shut down the driver,
2929
// respectively. Therefore, a mongocxx::instance must be created before using the driver and
3030
// must remain alive for as long as the driver is in use.

0 commit comments

Comments
 (0)