summaryrefslogtreecommitdiffstats
path: root/src/runtime_paths.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-13 01:16:41 -0500
committerDavid Robillard <d@drobilla.net>2022-12-14 18:04:27 -0500
commit4b56cdf7a925dafd5e4ac085874d2afe294ec456 (patch)
treeb0fd7ab1b58c1cc4eb4ec0f211b3221522ea2a7f /src/runtime_paths.cpp
parentf6ee1ce7bb45d0f6267b2dad61f6b87c79a5906c (diff)
downloadingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.tar.gz
ingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.tar.bz2
ingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.zip
Use std::filesystem and std::make_unique
Diffstat (limited to 'src/runtime_paths.cpp')
-rw-r--r--src/runtime_paths.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime_paths.cpp b/src/runtime_paths.cpp
index 86315be8..b876ebd4 100644
--- a/src/runtime_paths.cpp
+++ b/src/runtime_paths.cpp
@@ -17,12 +17,11 @@
#include "ingen/runtime_paths.hpp"
#include "ingen/FilePath.hpp"
-#include "ingen/filesystem.hpp"
#include "ingen_config.h"
-#include <algorithm>
#include <cstdlib>
#include <dlfcn.h>
+#include <filesystem>
#include <sstream>
#include <string>
@@ -92,7 +91,7 @@ find_in_search_path(const std::string& name,
{
for (const auto& dir : search_path) {
FilePath path = dir / name;
- if (filesystem::exists(path)) {
+ if (std::filesystem::exists(path)) {
return path;
}
}