0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/taskwarrior/0001-libcxx-18-sort.patch
2024-11-13 22:21:48 +08:00

23 lines
679 B
Diff

--- a/src/Operation.h
+++ b/src/Operation.h
@@ -78,7 +78,7 @@
// Define a partial order on Operations:
// - Create < Update < Delete < UndoPoint
// - Given two updates, sort by timestamp
- bool operator<(Operation &other) const;
+ bool operator<(const Operation &other) const;
private:
const tc::Operation *op;
--- a/src/Operation.cpp
+++ b/src/Operation.cpp
@@ -47,7 +47,7 @@
}
////////////////////////////////////////////////////////////////////////////////
-bool Operation::operator<(Operation& other) const {
+bool Operation::operator<(const Operation& other) const {
if (is_create()) {
return !other.is_create();
} else if (is_update()) {