summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-11-07 14:08:43 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-11-07 14:08:43 +0100
commita230ae486025447f5a49b14b96854e5f0d426f6c (patch)
tree75daddc07f19a3df4d2ee3ab50b523b5f9ac1650
parent6718adc7571d03c2d0813d7548daefc848e77e40 (diff)
downloadforstio-forstio-a230ae486025447f5a49b14b96854e5f0d426f6c.tar.gz
Fixing ordering in args
-rw-r--r--modules/remote-filesystem/c++/easy.hpp2
-rw-r--r--modules/remote-filesystem/examples/remote_read_file.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/remote-filesystem/c++/easy.hpp b/modules/remote-filesystem/c++/easy.hpp
index bfee13b..c7e9bb9 100644
--- a/modules/remote-filesystem/c++/easy.hpp
+++ b/modules/remote-filesystem/c++/easy.hpp
@@ -31,7 +31,7 @@ error_or<void> encode_and_write_file(const std::filesystem::path& p_, const data
auto& srv = eo_srv.get_value();
id<Sch> fid{0u};
- auto eo_write = srv->send(fid, dat);
+ auto eo_write = srv->send(dat, fid);
if(eo_write.is_error()){
return eo_write;
}
diff --git a/modules/remote-filesystem/examples/remote_read_file.cpp b/modules/remote-filesystem/examples/remote_read_file.cpp
index 435c32e..5b7bad0 100644
--- a/modules/remote-filesystem/examples/remote_read_file.cpp
+++ b/modules/remote-filesystem/examples/remote_read_file.cpp
@@ -1,4 +1,4 @@
-#include "../c++/transfer.hpp"
+#include "../c++/easy.hpp"
#include <forstio/codec/simple.hpp>