Kaydet (Commit) a3886c52 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

o3tl::sorted_vector Compare needs to be a strict weak ordering

No idea what the odd COLFUZZY SwWriteTableCol::operator == and < are supposed to
be good for, so leave them alone for now.

Change-Id: I52528a097f18ff12fac9725d802a3988c9dfa7e2
üst 66bd352d
...@@ -219,8 +219,13 @@ inline int SwWriteTableCol::operator<( const SwWriteTableCol& rCol ) const ...@@ -219,8 +219,13 @@ inline int SwWriteTableCol::operator<( const SwWriteTableCol& rCol ) const
return nPos < rCol.nPos - COLFUZZY; return nPos < rCol.nPos - COLFUZZY;
} }
struct SwWriteTableColLess {
bool operator()(SwWriteTableCol const * lhs, SwWriteTableCol const * rhs) {
return lhs->GetPos() < rhs->GetPos();
}
};
class SwWriteTableCols : public o3tl::sorted_vector<SwWriteTableCol*, o3tl::less_ptr_to<SwWriteTableCol> > { class SwWriteTableCols : public o3tl::sorted_vector<SwWriteTableCol*, SwWriteTableColLess> {
public: public:
~SwWriteTableCols() { DeleteAndDestroyAll(); } ~SwWriteTableCols() { DeleteAndDestroyAll(); }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment