File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -569,8 +569,10 @@ int irept::compare(const irept &i) const
569
569
r=id ().compare (i.id ());
570
570
if (r!=0 ) return r;
571
571
572
- if (get_sub ().size ()<i.get_sub ().size ()) return -1 ;
573
- if (get_sub ().size ()>i.get_sub ().size ()) return 1 ;
572
+ const subt::size_type size=get_sub ().size (),
573
+ i_size=i.get_sub ().size ();
574
+ if (size<i_size) return -1 ;
575
+ if (size>i_size) return 1 ;
574
576
575
577
{
576
578
irept::subt::const_iterator it1, it2;
@@ -588,8 +590,10 @@ int irept::compare(const irept &i) const
588
590
assert (it1==get_sub ().end () && it2==i.get_sub ().end ());
589
591
}
590
592
591
- if (get_named_sub ().size ()<i.get_named_sub ().size ()) return -1 ;
592
- if (get_named_sub ().size ()>i.get_named_sub ().size ()) return 1 ;
593
+ const named_subt::size_type n_size=get_named_sub ().size (),
594
+ i_n_size=i.get_named_sub ().size ();
595
+ if (n_size<i_n_size) return -1 ;
596
+ if (n_size>i_n_size) return 1 ;
593
597
594
598
{
595
599
irept::named_subt::const_iterator it1, it2;
You can’t perform that action at this time.
0 commit comments