Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. static auto wait_anim = LLStringUtil::null;
  2. if (wait_anim.empty())
  3. {
  4. for(const auto& pair : LLPreview::sInstances)
  5. {
  6. const auto& pPreview(pair.second);
  7. #ifndef LL_WINDOWS
  8. #if __cplusplus >= 201606
  9. constexpr std::string_view gesture("Gesture");
  10. if (pPreview && pPreview->getTitleName().compare(gesture) == 0)
  11. LL_COMPILE_TIME_MESSAGE("String view support detected, remove old code below");
  12. #endif
  13. #endif
  14. if (pPreview && pPreview->getTitleName() ==
  15. #ifndef LL_WINDOWS
  16. static_cast<const std::string>(
  17. #endif
  18. "Gesture"
  19. #ifndef LL_WINDOWS
  20. )
  21. #endif
  22. )
  23. {
  24. wait_anim = pPreview->getChild<LLCheckBoxCtrl>("wait_anim_check")->getLabel();
  25. break;
  26. }
  27. }
  28. }
  29. action = wait_anim;
  30. }
  31. result.append(action);
  32. return result;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement