aboutsummaryrefslogtreecommitdiffstats
path: root/core/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-04 08:03:40 -0700
committerChris Robinson <[email protected]>2023-05-04 08:03:40 -0700
commit7cda37a67c8f147536c53f0073df9a9e61d40587 (patch)
tree68a0997c94ec905dd3438f26418234bf63aa76f4 /core/helpers.cpp
parent40483b512218bab50fccaaeb11b51e5ca528fbe1 (diff)
Replace al::optional with std::optional
Diffstat (limited to 'core/helpers.cpp')
-rw-r--r--core/helpers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/helpers.cpp b/core/helpers.cpp
index 71ddbc23..58cc74e5 100644
--- a/core/helpers.cpp
+++ b/core/helpers.cpp
@@ -9,15 +9,15 @@
#include <cstdlib>
#include <cstdio>
#include <cstring>
-#include <mutex>
#include <limits>
+#include <mutex>
+#include <optional>
#include <string>
#include <tuple>
#include "almalloc.h"
#include "alfstream.h"
#include "alnumeric.h"
-#include "aloptional.h"
#include "alspan.h"
#include "alstring.h"
#include "logging.h"
@@ -38,7 +38,7 @@ bool AllowRTTimeLimit{true};
const PathNamePair &GetProcBinary()
{
- static al::optional<PathNamePair> procbin;
+ static std::optional<PathNamePair> procbin;
if(procbin) return *procbin;
auto fullpath = std::vector<WCHAR>(256);
@@ -209,7 +209,7 @@ void SetRTPriority(void)
const PathNamePair &GetProcBinary()
{
- static al::optional<PathNamePair> procbin;
+ static std::optional<PathNamePair> procbin;
if(procbin) return *procbin;
std::vector<char> pathname;