mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Misc changes (#1513)
* Start moving to string_view where possible * Rework readdir object to use atomic load/store
This commit is contained in:
parent
2101ef5bcc
commit
6ac7f389c5
61 changed files with 841 additions and 745 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
|
||||
int
|
||||
Func::Base::Action::from_string(const std::string &policyname_)
|
||||
Func::Base::Action::from_string(const std::string_view policyname_)
|
||||
{
|
||||
policy = Policies::Action::find(policyname_);
|
||||
if(!policy)
|
||||
|
|
@ -36,7 +36,7 @@ Func::Base::Action::to_string(void) const
|
|||
}
|
||||
|
||||
int
|
||||
Func::Base::Create::from_string(const std::string &policyname_)
|
||||
Func::Base::Create::from_string(const std::string_view policyname_)
|
||||
{
|
||||
policy = Policies::Create::find(policyname_);
|
||||
if(!policy)
|
||||
|
|
@ -52,7 +52,7 @@ Func::Base::Create::to_string(void) const
|
|||
}
|
||||
|
||||
int
|
||||
Func::Base::Search::from_string(const std::string &policyname_)
|
||||
Func::Base::Search::from_string(const std::string_view policyname_)
|
||||
{
|
||||
policy = Policies::Search::find(policyname_);
|
||||
if(!policy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue