@@ -3573,7 +3573,7 @@ default_schema_service::default_schema_service(spi::ClientContext& context)
3573
3573
context.get_client_properties ().get_invocation_retry_pause_millis ()) }
3574
3574
, max_put_retry_count_{ context.get_client_properties ().get_integer (
3575
3575
client_property{ MAX_PUT_RETRY_COUNT, MAX_PUT_RETRY_COUNT_DEFAULT }) }
3576
- , context_{ context }
3576
+ , context_( context)
3577
3577
{
3578
3578
}
3579
3579
@@ -3778,7 +3778,7 @@ default_schema_service::replicate_all_schemas()
3778
3778
3779
3779
compact_stream_serializer::compact_stream_serializer (
3780
3780
default_schema_service& service)
3781
- : schema_service{ service }
3781
+ : schema_service( service)
3782
3782
{
3783
3783
}
3784
3784
@@ -3859,8 +3859,8 @@ field_operations::get(field_kind kind)
3859
3859
using util::Bits;
3860
3860
using namespace boost ::property_tree;
3861
3861
3862
- static const char * NULL_STRING = " null" ;
3863
- static const char * BOOL_STRING[2 ] = { " true" , " false" };
3862
+ static const std::string NULL_STRING = " null" ;
3863
+ static const std::string BOOL_STRING[2 ] = { " true" , " false" };
3864
3864
3865
3865
static auto time_to_string = [](const local_time& lt) {
3866
3866
return boost::str (boost::format (" %02d:%02d:%02d.%d" ) % int (lt.hours ) %
@@ -3933,7 +3933,7 @@ field_operations::get(field_kind kind)
3933
3933
3934
3934
for (bool value : *values) {
3935
3935
array.push_back (
3936
- ptree::value_type (" " , BOOL_STRING[value]));
3936
+ std::make_pair (" " , ptree ( BOOL_STRING[value]) ));
3937
3937
}
3938
3938
3939
3939
parent.put_child (field_name, array);
@@ -3984,7 +3984,7 @@ field_operations::get(field_kind kind)
3984
3984
3985
3985
for (auto value : *values) {
3986
3986
array.push_back (
3987
- ptree::value_type (" " , std::to_string (value)));
3987
+ std::make_pair (" " , ptree ( std::to_string (value) )));
3988
3988
}
3989
3989
3990
3990
parent.put_child (field_name, array);
@@ -4037,7 +4037,7 @@ field_operations::get(field_kind kind)
4037
4037
4038
4038
for (auto value : *values) {
4039
4039
array.push_back (
4040
- ptree::value_type (" " , std::to_string (value)));
4040
+ std::make_pair (" " , ptree ( std::to_string (value) )));
4041
4041
}
4042
4042
4043
4043
parent.put_child (field_name, array);
@@ -4088,7 +4088,7 @@ field_operations::get(field_kind kind)
4088
4088
4089
4089
for (auto value : *values) {
4090
4090
array.push_back (
4091
- ptree::value_type (" " , std::to_string (value)));
4091
+ std::make_pair (" " , ptree ( std::to_string (value) )));
4092
4092
}
4093
4093
4094
4094
parent.put_child (field_name, array);
@@ -4139,7 +4139,7 @@ field_operations::get(field_kind kind)
4139
4139
4140
4140
for (auto value : *values) {
4141
4141
array.push_back (
4142
- ptree::value_type (" " , std::to_string (value)));
4142
+ std::make_pair (" " , ptree ( std::to_string (value) )));
4143
4143
}
4144
4144
4145
4145
parent.put_child (field_name, array);
@@ -4190,7 +4190,7 @@ field_operations::get(field_kind kind)
4190
4190
4191
4191
for (auto value : *values) {
4192
4192
array.push_back (
4193
- ptree::value_type (" " , std::to_string (value)));
4193
+ std::make_pair (" " , ptree ( std::to_string (value) )));
4194
4194
}
4195
4195
4196
4196
parent.put_child (field_name, array);
@@ -4241,7 +4241,7 @@ field_operations::get(field_kind kind)
4241
4241
4242
4242
for (auto value : *values) {
4243
4243
array.push_back (
4244
- ptree::value_type (" " , std::to_string (value)));
4244
+ std::make_pair (" " , ptree ( std::to_string (value) )));
4245
4245
}
4246
4246
4247
4247
parent.put_child (field_name, array);
@@ -4298,9 +4298,10 @@ field_operations::get(field_kind kind)
4298
4298
4299
4299
for (const auto & value : *values) {
4300
4300
if (!value) {
4301
- array.push_back (ptree::value_type (" " , NULL_STRING));
4301
+ array.push_back (
4302
+ std::make_pair (" " , ptree (NULL_STRING)));
4302
4303
} else {
4303
- array.push_back (ptree::value_type (" " , *value));
4304
+ array.push_back (std::make_pair (" " , ptree ( *value) ));
4304
4305
}
4305
4306
}
4306
4307
@@ -4360,12 +4361,13 @@ field_operations::get(field_kind kind)
4360
4361
4361
4362
for (const auto & value : *values) {
4362
4363
if (!value) {
4363
- array.push_back (ptree::value_type (" " , NULL_STRING));
4364
- } else {
4365
4364
array.push_back (
4366
- ptree::value_type (" " ,
4367
- value->unscaled .str () + " E" +
4368
- std::to_string (value->scale )));
4365
+ std::make_pair (" " , ptree (NULL_STRING)));
4366
+ } else {
4367
+ array.push_back (std::make_pair (
4368
+ " " ,
4369
+ ptree (value->unscaled .str () + " E" +
4370
+ std::to_string (value->scale ))));
4369
4371
}
4370
4372
}
4371
4373
@@ -4423,10 +4425,11 @@ field_operations::get(field_kind kind)
4423
4425
4424
4426
for (const auto & value : *values) {
4425
4427
if (!value) {
4426
- array.push_back (ptree::value_type (" " , NULL_STRING));
4428
+ array.push_back (
4429
+ std::make_pair (" " , ptree (NULL_STRING)));
4427
4430
} else {
4428
4431
array.push_back (
4429
- ptree::value_type (" " , time_to_string (*value)));
4432
+ std::make_pair (" " , ptree ( time_to_string (*value) )));
4430
4433
}
4431
4434
}
4432
4435
@@ -4484,10 +4487,11 @@ field_operations::get(field_kind kind)
4484
4487
4485
4488
for (const auto & value : *values) {
4486
4489
if (!value) {
4487
- array.push_back (ptree::value_type (" " , NULL_STRING));
4490
+ array.push_back (
4491
+ std::make_pair (" " , ptree (NULL_STRING)));
4488
4492
} else {
4489
4493
array.push_back (
4490
- ptree::value_type (" " , date_to_string (*value)));
4494
+ std::make_pair (" " , ptree ( date_to_string (*value) )));
4491
4495
}
4492
4496
}
4493
4497
@@ -4545,10 +4549,11 @@ field_operations::get(field_kind kind)
4545
4549
4546
4550
for (const auto & value : *values) {
4547
4551
if (!value) {
4548
- array.push_back (ptree::value_type (" " , NULL_STRING));
4549
- } else {
4550
4552
array.push_back (
4551
- ptree::value_type (" " , timestamp_to_string (*value)));
4553
+ std::make_pair (" " , ptree (NULL_STRING)));
4554
+ } else {
4555
+ array.push_back (std::make_pair (
4556
+ " " , ptree (timestamp_to_string (*value))));
4552
4557
}
4553
4558
}
4554
4559
@@ -4611,10 +4616,12 @@ field_operations::get(field_kind kind)
4611
4616
4612
4617
for (const auto & value : *values) {
4613
4618
if (!value) {
4614
- array.push_back (ptree::value_type (" " , NULL_STRING));
4619
+ array.push_back (
4620
+ std::make_pair (" " , ptree (NULL_STRING)));
4615
4621
} else {
4616
- array.push_back (ptree::value_type (
4617
- " " , timestamp_with_timezone_to_string (*value)));
4622
+ array.push_back (std::make_pair (
4623
+ " " ,
4624
+ ptree (timestamp_with_timezone_to_string (*value))));
4618
4625
}
4619
4626
}
4620
4627
@@ -4677,10 +4684,11 @@ field_operations::get(field_kind kind)
4677
4684
4678
4685
for (const auto & value : *values) {
4679
4686
if (!value) {
4680
- array.push_back (ptree::value_type (" " , NULL_STRING));
4687
+ array.push_back (
4688
+ std::make_pair (" " , ptree (NULL_STRING)));
4681
4689
} else {
4682
- array.push_back (ptree::value_type (
4683
- " " , write_generic_record (*value)));
4690
+ array.push_back (
4691
+ std::make_pair ( " " , write_generic_record (*value)));
4684
4692
}
4685
4693
}
4686
4694
@@ -4743,10 +4751,11 @@ field_operations::get(field_kind kind)
4743
4751
4744
4752
for (const auto & value : *values) {
4745
4753
if (!value) {
4746
- array.push_back (ptree::value_type (" " , NULL_STRING));
4754
+ array.push_back (
4755
+ std::make_pair (" " , ptree (NULL_STRING)));
4747
4756
} else {
4748
4757
array.push_back (
4749
- ptree::value_type (" " , BOOL_STRING[*value]));
4758
+ std::make_pair (" " , ptree ( BOOL_STRING[*value]) ));
4750
4759
}
4751
4760
}
4752
4761
@@ -4807,10 +4816,11 @@ field_operations::get(field_kind kind)
4807
4816
4808
4817
for (const auto & value : *values) {
4809
4818
if (!value) {
4810
- array.push_back (ptree::value_type (" " , NULL_STRING));
4819
+ array.push_back (
4820
+ std::make_pair (" " , ptree (NULL_STRING)));
4811
4821
} else {
4812
4822
array.push_back (
4813
- ptree::value_type (" " , std::to_string (*value)));
4823
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
4814
4824
}
4815
4825
}
4816
4826
@@ -4871,10 +4881,11 @@ field_operations::get(field_kind kind)
4871
4881
4872
4882
for (const auto & value : *values) {
4873
4883
if (!value) {
4874
- array.push_back (ptree::value_type (" " , NULL_STRING));
4884
+ array.push_back (
4885
+ std::make_pair (" " , ptree (NULL_STRING)));
4875
4886
} else {
4876
4887
array.push_back (
4877
- ptree::value_type (" " , std::to_string (*value)));
4888
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
4878
4889
}
4879
4890
}
4880
4891
@@ -4935,10 +4946,11 @@ field_operations::get(field_kind kind)
4935
4946
4936
4947
for (const auto & value : *values) {
4937
4948
if (!value) {
4938
- array.push_back (ptree::value_type (" " , NULL_STRING));
4949
+ array.push_back (
4950
+ std::make_pair (" " , ptree (NULL_STRING)));
4939
4951
} else {
4940
4952
array.push_back (
4941
- ptree::value_type (" " , std::to_string (*value)));
4953
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
4942
4954
}
4943
4955
}
4944
4956
@@ -4999,10 +5011,11 @@ field_operations::get(field_kind kind)
4999
5011
5000
5012
for (const auto & value : *values) {
5001
5013
if (!value) {
5002
- array.push_back (ptree::value_type (" " , NULL_STRING));
5014
+ array.push_back (
5015
+ std::make_pair (" " , ptree (NULL_STRING)));
5003
5016
} else {
5004
5017
array.push_back (
5005
- ptree::value_type (" " , std::to_string (*value)));
5018
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
5006
5019
}
5007
5020
}
5008
5021
@@ -5063,10 +5076,11 @@ field_operations::get(field_kind kind)
5063
5076
5064
5077
for (const auto & value : *values) {
5065
5078
if (!value) {
5066
- array.push_back (ptree::value_type (" " , NULL_STRING));
5079
+ array.push_back (
5080
+ std::make_pair (" " , ptree (NULL_STRING)));
5067
5081
} else {
5068
5082
array.push_back (
5069
- ptree::value_type (" " , std::to_string (*value)));
5083
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
5070
5084
}
5071
5085
}
5072
5086
@@ -5127,10 +5141,11 @@ field_operations::get(field_kind kind)
5127
5141
5128
5142
for (const auto & value : *values) {
5129
5143
if (!value) {
5130
- array.push_back (ptree::value_type (" " , NULL_STRING));
5144
+ array.push_back (
5145
+ std::make_pair (" " , ptree (NULL_STRING)));
5131
5146
} else {
5132
5147
array.push_back (
5133
- ptree::value_type (" " , std::to_string (*value)));
5148
+ std::make_pair (" " , ptree ( std::to_string (*value) )));
5134
5149
}
5135
5150
}
5136
5151
0 commit comments