Skip to content

Commit 2270ed0

Browse files
committed
use JSONCONS_VISITOR return macros
1 parent 70f7364 commit 2270ed0

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

include/jsoncons/json_filter.hpp

+29-29
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
305305
destination1_->begin_object(tag, context, ec);
306306
if (JSONCONS_UNLIKELY(ec))
307307
{
308-
return;
308+
JSONCONS_VISITOR_RETURN
309309
}
310310
destination2_->begin_object(tag, context, ec);
311311
JSONCONS_VISITOR_RETURN
@@ -316,7 +316,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
316316
destination1_->begin_object(length, tag, context, ec);
317317
if (JSONCONS_UNLIKELY(ec))
318318
{
319-
return;
319+
JSONCONS_VISITOR_RETURN
320320
}
321321
destination2_->begin_object(length, tag, context, ec);
322322
JSONCONS_VISITOR_RETURN
@@ -327,7 +327,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
327327
destination1_->end_object(context, ec);
328328
if (JSONCONS_UNLIKELY(ec))
329329
{
330-
return;
330+
JSONCONS_VISITOR_RETURN
331331
}
332332
destination2_->end_object(context, ec);
333333
JSONCONS_VISITOR_RETURN
@@ -338,7 +338,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
338338
destination1_->begin_array(tag, context, ec);
339339
if (JSONCONS_UNLIKELY(ec))
340340
{
341-
return;
341+
JSONCONS_VISITOR_RETURN
342342
}
343343
destination2_->begin_array(tag, context, ec);
344344
JSONCONS_VISITOR_RETURN
@@ -349,7 +349,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
349349
destination1_->begin_array(length, tag, context, ec);
350350
if (JSONCONS_UNLIKELY(ec))
351351
{
352-
return;
352+
JSONCONS_VISITOR_RETURN
353353
}
354354
destination2_->begin_array(length, tag, context, ec);
355355
JSONCONS_VISITOR_RETURN
@@ -360,7 +360,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
360360
destination1_->end_array(context, ec);
361361
if (JSONCONS_UNLIKELY(ec))
362362
{
363-
return;
363+
JSONCONS_VISITOR_RETURN
364364
}
365365
destination2_->end_array(context, ec);
366366
JSONCONS_VISITOR_RETURN
@@ -373,7 +373,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
373373
destination1_->key(name, context, ec);
374374
if (JSONCONS_UNLIKELY(ec))
375375
{
376-
return;
376+
JSONCONS_VISITOR_RETURN
377377
}
378378
destination2_->key(name, context, ec);
379379
JSONCONS_VISITOR_RETURN
@@ -387,7 +387,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
387387
destination1_->string_value(value, tag, context, ec);
388388
if (JSONCONS_UNLIKELY(ec))
389389
{
390-
return;
390+
JSONCONS_VISITOR_RETURN
391391
}
392392
destination2_->string_value(value, tag, context, ec);
393393
JSONCONS_VISITOR_RETURN
@@ -401,7 +401,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
401401
destination1_->byte_string_value(b, tag, context, ec);
402402
if (JSONCONS_UNLIKELY(ec))
403403
{
404-
return;
404+
JSONCONS_VISITOR_RETURN
405405
}
406406
destination2_->byte_string_value(b, tag, context, ec);
407407
JSONCONS_VISITOR_RETURN
@@ -415,7 +415,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
415415
destination1_->byte_string_value(b, ext_tag, context, ec);
416416
if (JSONCONS_UNLIKELY(ec))
417417
{
418-
return;
418+
JSONCONS_VISITOR_RETURN
419419
}
420420
destination2_->byte_string_value(b, ext_tag, context, ec);
421421
JSONCONS_VISITOR_RETURN
@@ -426,7 +426,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
426426
destination1_->uint64_value(value, tag, context, ec);
427427
if (JSONCONS_UNLIKELY(ec))
428428
{
429-
return;
429+
JSONCONS_VISITOR_RETURN
430430
}
431431
destination2_->uint64_value(value, tag, context, ec);
432432
JSONCONS_VISITOR_RETURN
@@ -437,7 +437,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
437437
destination1_->int64_value(value, tag, context, ec);
438438
if (JSONCONS_UNLIKELY(ec))
439439
{
440-
return;
440+
JSONCONS_VISITOR_RETURN
441441
}
442442
destination2_->int64_value(value, tag, context, ec);
443443
JSONCONS_VISITOR_RETURN
@@ -448,7 +448,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
448448
destination1_->half_value(value, tag, context, ec);
449449
if (JSONCONS_UNLIKELY(ec))
450450
{
451-
return;
451+
JSONCONS_VISITOR_RETURN
452452
}
453453
destination2_->half_value(value, tag, context, ec);
454454
JSONCONS_VISITOR_RETURN
@@ -459,7 +459,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
459459
destination1_->double_value(value, tag, context, ec);
460460
if (JSONCONS_UNLIKELY(ec))
461461
{
462-
return;
462+
JSONCONS_VISITOR_RETURN
463463
}
464464
destination2_->double_value(value, tag, context, ec);
465465
JSONCONS_VISITOR_RETURN
@@ -470,7 +470,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
470470
destination1_->bool_value(value, tag, context, ec);
471471
if (JSONCONS_UNLIKELY(ec))
472472
{
473-
return;
473+
JSONCONS_VISITOR_RETURN
474474
}
475475
destination2_->bool_value(value, tag, context, ec);
476476
JSONCONS_VISITOR_RETURN
@@ -481,7 +481,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
481481
destination1_->null_value(tag, context, ec);
482482
if (JSONCONS_UNLIKELY(ec))
483483
{
484-
return;
484+
JSONCONS_VISITOR_RETURN
485485
}
486486
destination2_->null_value(tag, context, ec);
487487
JSONCONS_VISITOR_RETURN
@@ -495,7 +495,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
495495
destination1_->typed_array(s, tag, context, ec);
496496
if (JSONCONS_UNLIKELY(ec))
497497
{
498-
return;
498+
JSONCONS_VISITOR_RETURN
499499
}
500500
destination2_->typed_array(s, tag, context, ec);
501501
JSONCONS_VISITOR_RETURN
@@ -509,7 +509,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
509509
destination1_->typed_array(s, tag, context, ec);
510510
if (JSONCONS_UNLIKELY(ec))
511511
{
512-
return;
512+
JSONCONS_VISITOR_RETURN
513513
}
514514
destination2_->typed_array(s, tag, context, ec);
515515
JSONCONS_VISITOR_RETURN
@@ -523,7 +523,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
523523
destination1_->typed_array(s, tag, context, ec);
524524
if (JSONCONS_UNLIKELY(ec))
525525
{
526-
return;
526+
JSONCONS_VISITOR_RETURN
527527
}
528528
destination2_->typed_array(s, tag, context, ec);
529529
JSONCONS_VISITOR_RETURN
@@ -537,7 +537,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
537537
destination1_->typed_array(s, tag, context, ec);
538538
if (JSONCONS_UNLIKELY(ec))
539539
{
540-
return;
540+
JSONCONS_VISITOR_RETURN
541541
}
542542
destination2_->typed_array(s, tag, context, ec);
543543
JSONCONS_VISITOR_RETURN
@@ -551,7 +551,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
551551
destination1_->typed_array(s, tag, context, ec);
552552
if (JSONCONS_UNLIKELY(ec))
553553
{
554-
return;
554+
JSONCONS_VISITOR_RETURN
555555
}
556556
destination2_->typed_array(s, tag, context, ec);
557557
JSONCONS_VISITOR_RETURN
@@ -565,7 +565,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
565565
destination1_->typed_array(s, tag, context, ec);
566566
if (JSONCONS_UNLIKELY(ec))
567567
{
568-
return;
568+
JSONCONS_VISITOR_RETURN
569569
}
570570
destination2_->typed_array(s, tag, context, ec);
571571
JSONCONS_VISITOR_RETURN
@@ -579,7 +579,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
579579
destination1_->typed_array(s, tag, context, ec);
580580
if (JSONCONS_UNLIKELY(ec))
581581
{
582-
return;
582+
JSONCONS_VISITOR_RETURN
583583
}
584584
destination2_->typed_array(s, tag, context, ec);
585585
JSONCONS_VISITOR_RETURN
@@ -593,7 +593,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
593593
destination1_->typed_array(s, tag, context, ec);
594594
if (JSONCONS_UNLIKELY(ec))
595595
{
596-
return;
596+
JSONCONS_VISITOR_RETURN
597597
}
598598
destination2_->typed_array(s, tag, context, ec);
599599
JSONCONS_VISITOR_RETURN
@@ -608,7 +608,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
608608
destination1_->typed_array(half_arg, s, tag, context, ec);
609609
if (JSONCONS_UNLIKELY(ec))
610610
{
611-
return;
611+
JSONCONS_VISITOR_RETURN
612612
}
613613
destination2_->typed_array(half_arg, s, tag, context, ec);
614614
JSONCONS_VISITOR_RETURN
@@ -622,7 +622,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
622622
destination1_->typed_array(s, tag, context, ec);
623623
if (JSONCONS_UNLIKELY(ec))
624624
{
625-
return;
625+
JSONCONS_VISITOR_RETURN
626626
}
627627
destination2_->typed_array(s, tag, context, ec);
628628
JSONCONS_VISITOR_RETURN
@@ -636,7 +636,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
636636
destination1_->typed_array(s, tag, context, ec);
637637
if (JSONCONS_UNLIKELY(ec))
638638
{
639-
return;
639+
JSONCONS_VISITOR_RETURN
640640
}
641641
destination2_->typed_array(s, tag, context, ec);
642642
JSONCONS_VISITOR_RETURN
@@ -650,7 +650,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
650650
destination1_->begin_multi_dim(shape, tag, context, ec);
651651
if (JSONCONS_UNLIKELY(ec))
652652
{
653-
return;
653+
JSONCONS_VISITOR_RETURN
654654
}
655655
destination2_->begin_multi_dim(shape, tag, context, ec);
656656
JSONCONS_VISITOR_RETURN
@@ -662,7 +662,7 @@ class basic_json_tee : public basic_json_visitor<CharT>
662662
destination1_->end_multi_dim(context, ec);
663663
if (JSONCONS_UNLIKELY(ec))
664664
{
665-
return;
665+
JSONCONS_VISITOR_RETURN
666666
}
667667
destination2_->end_multi_dim(context, ec);
668668
JSONCONS_VISITOR_RETURN

0 commit comments

Comments
 (0)