diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-02 18:48:27 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-02 18:48:27 +0200 |
| commit | 06644a4f989fa9fe673281859734be7a7b72aeac (patch) | |
| tree | 539f9b2636ad61852c0926364179cd5952551781 /src | |
| parent | 0577e90fd1d73777e0c73995ac83bb2e0fc77db3 (diff) | |
| download | Project-Tick-06644a4f989fa9fe673281859734be7a7b72aeac.tar.gz Project-Tick-06644a4f989fa9fe673281859734be7a7b72aeac.zip | |
Change semantics of empty list equality
I considered making empty lists of undetermined type equal to all empty
lists, but then the comparison would not be transitive
Diffstat (limited to 'src')
| -rw-r--r-- | src/tag_list.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tag_list.cpp b/src/tag_list.cpp index 34112b3eca..7900f9872e 100644 --- a/src/tag_list.cpp +++ b/src/tag_list.cpp @@ -132,8 +132,6 @@ auto tag_list::cend() const -> const_iterator { return tags.cend(); } bool operator==(const tag_list& lhs, const tag_list& rhs) { - if(lhs.size() == 0 && rhs.size() == 0) - return true; return lhs.el_type_ == rhs.el_type_ && lhs.tags == rhs.tags; } |
