get rid of em <algorithm>

This commit is contained in:
lachrymaL 2021-05-16 12:31:40 -04:00
parent 8efd8c1470
commit da5f7f5327
No known key found for this signature in database
GPG key ID: F3640ACFA174B1C1

View file

@ -1,5 +1,4 @@
#include <map>
#include <algorithm>
#include "NVL.h"
namespace {
@ -222,8 +221,11 @@ namespace NVL
else
{
// early return if string is empty, this should only happen if calling from an object (not a call)
if (std::all_of(std::get<std::string>(content).begin(), std::get<std::string>(content).end(), isspace))
for (auto& c : std::get<std::string>(content))
{
if (!isspace(c))
return;
}
// default case if content does not match keywords
this_object.Value = std::get<std::string>(content);
}