summaryrefslogtreecommitdiffstats
path: root/src/filepath.cpp
diff options
context:
space:
mode:
authorAlexander Batischev <eual.jp@gmail.com>2024-10-02 20:56:43 +0300
committerAlexander Batischev <eual.jp@gmail.com>2024-10-02 21:11:47 +0300
commitc6629996ea69f75f3537c479d112f9f07da187fb (patch)
treea63d927aabbc67f60249cabae7c001563247ff8b /src/filepath.cpp
parentf07f68c9b7a9be4333464c4be554ef43dbc95aba (diff)
Remove remaining implicit conversions from {File,Dir}BrowserFormActionfeature/2326-remove-implicit-conversions-from-file-dir-browser
Diffstat (limited to 'src/filepath.cpp')
-rw-r--r--src/filepath.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/filepath.cpp b/src/filepath.cpp
index 6ff48526..caaf7da5 100644
--- a/src/filepath.cpp
+++ b/src/filepath.cpp
@@ -63,6 +63,26 @@ bool Filepath::operator!=(const Filepath& other) const
return !(*this == other);
}
+bool Filepath::operator<(const Filepath& other) const
+{
+ return filepath::bridged::less_than(*rs_object, *other.rs_object);
+}
+
+bool Filepath::operator<=(const Filepath& other) const
+{
+ return !(*this > other);
+}
+
+bool Filepath::operator>(const Filepath& other) const
+{
+ return !(*this < other) && (*this != other);
+}
+
+bool Filepath::operator>=(const Filepath& other) const
+{
+ return !(*this < other);
+}
+
void Filepath::push(const Filepath& component)
{
filepath::bridged::push(*rs_object, *component.rs_object);