File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
google/cloud/storage/internal Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ nlohmann::json const& PatchBuilderDetails::GetPatch(
3636
3737nlohmann::json const & PatchBuilderDetails::GetLabelsSubPatch (
3838 storage::BucketMetadataPatchBuilder const & patch) {
39- static auto const * const kEmpty = [] { return new nlohmann::json ({}); }();
39+ static auto const * const kEmpty = [] {
40+ return new nlohmann::json (nlohmann::json::object ());
41+ }();
4042 if (!patch.labels_subpatch_dirty_ ) return *kEmpty ;
4143 return GetPatch (patch.labels_subpatch_ );
4244}
@@ -53,7 +55,9 @@ nlohmann::json const& PatchBuilderDetails::GetPatch(
5355
5456nlohmann::json const & PatchBuilderDetails::GetMetadataSubPatch (
5557 storage::ObjectMetadataPatchBuilder const & patch) {
56- static auto const * const kEmpty = [] { return new nlohmann::json ({}); }();
58+ static auto const * const kEmpty = [] {
59+ return new nlohmann::json (nlohmann::json::object ());
60+ }();
5761 if (!patch.metadata_subpatch_dirty_ ) return *kEmpty ;
5862 return GetPatch (patch.metadata_subpatch_ );
5963}
You can’t perform that action at this time.
0 commit comments