• R/O
  • SSH
  • HTTPS

magic-txd: 提交


Commit MetaInfo

修订版77 (tree)
时间2021-09-26 03:03:30
作者quiret

Log Message

- big maintenance update

更改概述

差异

--- src/qtrwutils.hxx (revision 76)
+++ src/qtrwutils.hxx (revision 77)
@@ -63,19 +63,14 @@
6363 double weight;
6464 rw::rwStaticString <char> platName;
6565
66- inline bool operator < ( const weightedNode& right ) const
66+ inline static eir::eCompResult compare_values( const weightedNode& left, const weightedNode& right )
6767 {
68- if ( this->weight > right.weight )
68+ if ( left.weight > right.weight )
6969 {
70- return true;
70+ return eir::eCompResult::LEFT_LESS;
7171 }
7272
73- if ( FixedStringCompare( this->platName.GetConstString(), this->platName.GetLength(), right.platName.GetConstString(), right.platName.GetLength(), true ) == eir::eCompResult::LEFT_GREATER )
74- {
75- return true;
76- }
77-
78- return false;
73+ return eir::flip_comp_result( FixedStringCompare( left.platName.GetConstString(), left.platName.GetLength(), right.platName.GetConstString(), right.platName.GetLength(), true ) );
7974 }
8075 };
8176
@@ -96,7 +91,7 @@
9691 }
9792
9893 // The result container.
99- rw::rwStaticSet <weightedNode> nodeContainer;
94+ rw::rwStaticSet <weightedNode, weightedNode> nodeContainer;
10095
10196 // Process all platforms and store their rating.
10297 for ( size_t n = 0; n < platCount; n++ )
Show on old repository browser