From 5b2dcf3f2450875d4c6c18b386428b2af42ac88e Mon Sep 17 00:00:00 2001 From: Martin Kinkelin Date: Sun, 3 Mar 2024 21:10:10 +0100 Subject: [PATCH] Fix little upstream C++ header regression --- dmd/root/filename.d | 2 +- dmd/root/filename.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmd/root/filename.d b/dmd/root/filename.d index 751b289d1f9..2b02f99bb2e 100644 --- a/dmd/root/filename.d +++ b/dmd/root/filename.d @@ -665,7 +665,7 @@ nothrow: * Returns: * if found, filename combined with path, otherwise null */ - extern (C++) static const(char)* searchPath(const ref Strings path, const char* name, bool cwd) + extern (C++) static const(char)* searchPath(const ref Strings path, const(char)* name, bool cwd) { return searchPath(path[], name.toDString, cwd).ptr; } diff --git a/dmd/root/filename.h b/dmd/root/filename.h index d95e26ab11b..29c58aeca3b 100644 --- a/dmd/root/filename.h +++ b/dmd/root/filename.h @@ -38,7 +38,7 @@ struct FileName bool equalsExt(const char *ext); - static const char *searchPath(Strings& path, const char *name, bool cwd); + static const char *searchPath(const Strings& path, const char *name, bool cwd); static int exists(const char *name); static bool ensurePathExists(const char *path); static const char *canonicalName(const char *name);