Fix weird gesture deactivation and state-save bug with weird fix.
Also OCDly replace a NULL with nullptr (not part of the above fix).
This commit is contained in:
@@ -996,9 +996,9 @@ void LLGestureMgr::onLoadComplete(LLVFS *vfs,
|
||||
{
|
||||
LLLoadInfo* info = (LLLoadInfo*)user_data;
|
||||
|
||||
const LLUUID& item_id = info->mItemID;
|
||||
const bool& inform_server = info->mInformServer;
|
||||
const bool& deactivate_similar = info->mDeactivateSimilar;
|
||||
const LLUUID item_id = info->mItemID;
|
||||
const bool inform_server = info->mInformServer;
|
||||
const bool deactivate_similar = info->mDeactivateSimilar;
|
||||
|
||||
delete info;
|
||||
info = nullptr;
|
||||
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
bool triggerGesture(KEY key, MASK mask);
|
||||
|
||||
// Trigger all gestures referenced as substrings in this string
|
||||
bool triggerAndReviseString(const std::string &str, std::string *revised_string = NULL);
|
||||
bool triggerAndReviseString(const std::string &str, std::string *revised_string = nullptr);
|
||||
|
||||
// Does some gesture have this key bound?
|
||||
//bool isKeyBound(KEY key, MASK mask) const;
|
||||
|
||||
Reference in New Issue
Block a user