[tor-commits] [tor-browser/tor-browser-45.1.0esr-6.0-1] Bug 1263653 - Fixed TSFTextStore.h compilation with mingw. r=masayuki

gk at torproject.org gk at torproject.org
Sat Apr 23 18:04:55 UTC 2016


commit 9485c82c37e30700fe7d2512296234412afe701b
Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Apr 12 12:37:18 2016 +0200

    Bug 1263653 - Fixed TSFTextStore.h compilation with mingw. r=masayuki
---
 widget/windows/TSFTextStore.cpp |  2 +-
 widget/windows/TSFTextStore.h   | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/widget/windows/TSFTextStore.cpp b/widget/windows/TSFTextStore.cpp
index 40ddf88..da88b00 100644
--- a/widget/windows/TSFTextStore.cpp
+++ b/widget/windows/TSFTextStore.cpp
@@ -5225,7 +5225,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);
     }
diff --git a/widget/windows/TSFTextStore.h b/widget/windows/TSFTextStore.h
index a3b7009..117a8f1 100644
--- a/widget/windows/TSFTextStore.h
+++ b/widget/windows/TSFTextStore.h
@@ -118,7 +118,7 @@ public:
     if (!sEnabledTextStore) {
       return;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     textStore->CommitCompositionInternal(aDiscard);
   }
 
@@ -135,7 +135,7 @@ public:
     if (!sEnabledTextStore) {
       return NS_OK;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     return textStore->OnTextChangeInternal(aIMENotification);
   }
 
@@ -145,7 +145,7 @@ public:
     if (!sEnabledTextStore) {
       return NS_OK;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     return textStore->OnSelectionChangeInternal(aIMENotification);
   }
 
@@ -155,7 +155,7 @@ public:
     if (!sEnabledTextStore) {
       return NS_OK;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     return textStore->OnLayoutChangeInternal();
   }
 
@@ -165,7 +165,7 @@ public:
     if (!sEnabledTextStore) {
       return NS_OK;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     return textStore->OnUpdateCompositionInternal();
   }
 
@@ -175,7 +175,7 @@ public:
     if (!sEnabledTextStore) {
       return NS_OK;
     }
-    RefPtr<TSFTextStore> textStore = sEnabledTextStore;
+    RefPtr<TSFTextStore> textStore(sEnabledTextStore);
     return textStore->OnMouseButtonEventInternal(aIMENotification);
   }
 



More information about the tor-commits mailing list