Misc changes (#1513)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

* Start moving to string_view where possible
* Rework readdir object to use atomic load/store
This commit is contained in:
trapexit 2025-08-21 23:42:58 -04:00 • committed by GitHub
parent 2101ef5bcc
commit 6ac7f389c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 841 additions and 745 deletions

View file

@ -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)