From 855cc19421c4cc32d2018c5ec993686f303f8c0d Mon Sep 17 00:00:00 2001 From: Kitty Barnett <develop@catznip.com> Date: Fri, 27 May 2022 00:44:49 +0200 Subject: [PATCH] [FIXED] C++17 compatibility error --- indra/newview/llfloater360capture.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloater360capture.cpp b/indra/newview/llfloater360capture.cpp index 745f1545351..17febf6c82e 100644 --- a/indra/newview/llfloater360capture.cpp +++ b/indra/newview/llfloater360capture.cpp @@ -888,7 +888,10 @@ const std::string LLFloater360Capture::generate_proposed_filename() // this looks complex but it's straightforward - removes all non-alpha chars from a string // which in this case is the SL region name - we use it as a proposed filename but the user is free to change std::string region_name = region->getName(); - std::replace_if(region_name.begin(), region_name.end(), std::not1(std::ptr_fun(isalnum)), '_'); +// [SL:KB] - Patch: Viewer-Build | Checked: Catznip-6.6 + std::replace_if(region_name.begin(), region_name.end(), [](unsigned char ch) { return !isalnum(ch); }, '_'); +// [/SL:KB] +// std::replace_if(region_name.begin(), region_name.end(), std::not1(std::ptr_fun(isalnum)), '_'); if (region_name.length() > 0) { filename << region_name; -- GitLab