From c82c7910613644ecf3209aef92110ae9b2ad179f Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Thu, 12 Jun 2014 08:51:54 -0400 Subject: [PATCH] Whoops, that was C++11, that won't work for Linux and Mac. (code change only) --- indra/newview/llpanelprofile.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 9172c2564..d324e5287 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -97,8 +97,13 @@ public: } std::string verb = params[1].asString(); +#if LL_WINDOWS // C++11 while (!verb.empty() && std::ispunct(verb.back())) verb.pop_back(); +#else + for (size_t i = verb.size()-1; i >= 0 && std::ispunct(verb.back[i]); --i) + verb.erase(i); +#endif if (verb == "about") { LLAvatarActions::showProfile(avatar_id);