summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis van der Schagt <dennisschagt@gmail.com>2024-01-06 17:52:31 +0100
committerDennis van der Schagt <dennisschagt@gmail.com>2024-04-05 01:07:02 +0200
commit533574f36211a45d5d042adea1270ba4abc7274e (patch)
treedb678e73bcd3fe8b322acd2bfbdc05e8f8575cb7
parent4772d2fe61b3b13991a0c5878bde11c2e5c81936 (diff)
Make moves explicit for GCC 5-7rebased/feature/2326-filepath
-rw-r--r--src/cliargsparser.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cliargsparser.cpp b/src/cliargsparser.cpp
index c727dc4e..8ba187ed 100644
--- a/src/cliargsparser.cpp
+++ b/src/cliargsparser.cpp
@@ -61,7 +61,7 @@ nonstd::optional<Filepath> CliArgsParser::readinfo_import_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::readinfo_import_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -70,7 +70,7 @@ nonstd::optional<Filepath> CliArgsParser::readinfo_export_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::readinfo_export_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -123,7 +123,7 @@ nonstd::optional<Filepath> CliArgsParser::url_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::url_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -132,7 +132,7 @@ nonstd::optional<Filepath> CliArgsParser::lock_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::lock_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -141,7 +141,7 @@ nonstd::optional<Filepath> CliArgsParser::cache_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::cache_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -150,7 +150,7 @@ nonstd::optional<Filepath> CliArgsParser::config_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::config_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -159,7 +159,7 @@ nonstd::optional<Filepath> CliArgsParser::queue_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::queue_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -168,7 +168,7 @@ nonstd::optional<Filepath> CliArgsParser::search_history_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::search_history_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -177,7 +177,7 @@ nonstd::optional<Filepath> CliArgsParser::cmdline_history_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::cmdline_history_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}
@@ -199,7 +199,7 @@ nonstd::optional<Filepath> CliArgsParser::log_file() const
{
auto path = filepath::bridged::create_empty();
if (newsboat::cliargsparser::bridged::log_file(*rs_object, *path)) {
- return path;
+ return Filepath(std::move(path));
}
return nonstd::nullopt;
}