Bug 1263653 - Fixed TSFTextStore.h compilation with mingw. r=masayuki

This commit is contained in:
Jacek Caban
2016-04-12 12:37:18 +02:00
parent 29fc0130e8
commit af5e87c81d
2 changed files with 7 additions and 7 deletions

View File

@@ -5304,7 +5304,7 @@ TSFTextStore::SetInputContext(nsWindowBase* aWidget,
if (aAction.mFocusChange != InputContextAction::FOCUS_NOT_CHANGED) {
if (sEnabledTextStore) {
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
textStore->SetInputScope(aContext.mHTMLInputType,
aContext.mHTMLInputInputmode);
}

View File

@@ -119,7 +119,7 @@ public:
if (!sEnabledTextStore) {
return;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
textStore->CommitCompositionInternal(aDiscard);
}
@@ -136,7 +136,7 @@ public:
if (!sEnabledTextStore) {
return NS_OK;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
return textStore->OnTextChangeInternal(aIMENotification);
}
@@ -146,7 +146,7 @@ public:
if (!sEnabledTextStore) {
return NS_OK;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
return textStore->OnSelectionChangeInternal(aIMENotification);
}
@@ -156,7 +156,7 @@ public:
if (!sEnabledTextStore) {
return NS_OK;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
return textStore->OnLayoutChangeInternal();
}
@@ -166,7 +166,7 @@ public:
if (!sEnabledTextStore) {
return NS_OK;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
return textStore->OnUpdateCompositionInternal();
}
@@ -176,7 +176,7 @@ public:
if (!sEnabledTextStore) {
return NS_OK;
}
RefPtr<TSFTextStore> textStore = sEnabledTextStore;
RefPtr<TSFTextStore> textStore(sEnabledTextStore);
return textStore->OnMouseButtonEventInternal(aIMENotification);
}