Whoops, that was C++11, that won't work for Linux and Mac. (code change only)
This commit is contained in:
@@ -97,8 +97,13 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string verb = params[1].asString();
|
std::string verb = params[1].asString();
|
||||||
|
#if LL_WINDOWS // C++11
|
||||||
while (!verb.empty() && std::ispunct(verb.back()))
|
while (!verb.empty() && std::ispunct(verb.back()))
|
||||||
verb.pop_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")
|
if (verb == "about")
|
||||||
{
|
{
|
||||||
LLAvatarActions::showProfile(avatar_id);
|
LLAvatarActions::showProfile(avatar_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user