[CDRIVER-3069] Allow bson_iter_overwrite_decimal128 to take in a const decimal128 pointer Created: 03/Apr/19  Updated: 28/Oct/23  Resolved: 04/Jun/19

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Improvement Priority: Minor - P4
Reporter: Patrick Freed Assignee: Haris Sheikh (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency

 Description   

Right now, bson_iter_overwrite_decimal128 takes in a non-const pointer to the input decimal128 even though it's not being mutated. The overwrite function corresponding to ObjectID does however take in a const pointer to its input ObjectID.

bson_iter_overwrite_decimal128 should thus be updated to take in a const pointer.



 Comments   
Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Haris Sheikh', 'email': 'harissheikh@Hariss-MacBook-Pro.local'}

Message: CDRIVER-3069 updated bson_iter_overwrite_decimal128 api to take const pointer
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e87f3d618aba7a474b701eef8aeaf4c30009918e

Generated at Wed Feb 07 21:17:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.