get rid of em <algorithm>
This commit is contained in:
parent
8efd8c1470
commit
da5f7f5327
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
|
||||||
#include "NVL.h"
|
#include "NVL.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -222,8 +221,11 @@ namespace NVL
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// early return if string is empty, this should only happen if calling from an object (not a call)
|
// 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;
|
return;
|
||||||
|
}
|
||||||
// default case if content does not match keywords
|
// default case if content does not match keywords
|
||||||
this_object.Value = std::get<std::string>(content);
|
this_object.Value = std::get<std::string>(content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue