From 91524c7f466c7832fcf6dd3032228db6c1e23729 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 21 Mar 2020 17:55:09 +0100 Subject: [PATCH] Remove unneeded includes, prefer cstring over string.h --- source/system/platform.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/system/platform.cpp b/source/system/platform.cpp index d8832c68..7373f561 100644 --- a/source/system/platform.cpp +++ b/source/system/platform.cpp @@ -18,15 +18,13 @@ #include #include "../detail/mswin/platform_spec.hpp" #elif defined(NANA_POSIX) - #include - #include #include #include #include #include #include #include - #include + #include static void posix_open_url(const char *url_utf8) { @@ -55,7 +53,7 @@ static void posix_open_url(const char *url_utf8) static const char firefox[] = "firefox"; char name[sizeof firefox]{}; // argv does not like const-literals so make a copy. - strcpy(name, firefox); + std::strcpy(name, firefox); char *argv[3] = {name, const_cast(url_utf8), nullptr}; posix_spawn(&pid, path, NULL, NULL, argv, environ); }