Whoops, that was C++11, that won't work for Linux and Mac. (code change only)

This commit is contained in:
Inusaito Sayori
2014-06-12 08:51:54 -04:00
parent bcd18a01d8
commit c82c791061

View File

@@ -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);