aboutsummaryrefslogtreecommitdiff
blob: 28dad012b38a447da0590c6cc81c4c594319b22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
diff -urN a/embedding/browser/gtk/src/EmbedPrivate.cpp b/embedding/browser/gtk/src/EmbedPrivate.cpp
--- a/embedding/browser/gtk/src/EmbedPrivate.cpp	2011-03-18 19:33:39.000000000 -0400
+++ b/embedding/browser/gtk/src/EmbedPrivate.cpp	2011-04-03 08:12:12.995741697 -0400
@@ -104,7 +104,7 @@
   NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
 };
 
-static const GTKEmbedDirectoryProvider kDirectoryProvider;
+static const GTKEmbedDirectoryProvider kDirectoryProvider = GTKEmbedDirectoryProvider();
 
 NS_IMPL_QUERY_INTERFACE2(GTKEmbedDirectoryProvider,
                          nsIDirectoryServiceProvider,
diff -urN a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp
--- a/layout/style/nsCSSRuleProcessor.cpp	2011-03-18 19:34:00.000000000 -0400
+++ b/layout/style/nsCSSRuleProcessor.cpp	2011-04-03 08:12:35.205741696 -0400
@@ -1505,7 +1505,7 @@
     return PR_FALSE;
 
   const nsDefaultStringComparator defaultComparator;
-  const nsASCIICaseInsensitiveStringComparator ciComparator;
+  const nsASCIICaseInsensitiveStringComparator ciComparator = nsASCIICaseInsensitiveStringComparator();
   const nsStringComparator& comparator =
       (aAttrSelector->mCaseSensitive || !isHTML)
                 ? static_cast<const nsStringComparator&>(defaultComparator)
diff -urN a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp	2011-04-03 08:17:35.091741681 -0400
+++ b/toolkit/xre/nsAppRunner.cpp	2011-04-03 08:12:12.305741698 -0400
@@ -1041,7 +1041,7 @@
 
 #endif
 
-static const nsXULAppInfo kAppInfo;
+static const nsXULAppInfo kAppInfo = nsXULAppInfo();
 static nsresult AppInfoConstructor(nsISupports* aOuter,
                                    REFNSIID aIID, void **aResult)
 {
diff -urN a/xpcom/base/nsDebugImpl.cpp b/xpcom/base/nsDebugImpl.cpp
--- a/xpcom/base/nsDebugImpl.cpp	2011-03-18 19:34:13.000000000 -0400
+++ b/xpcom/base/nsDebugImpl.cpp	2011-04-03 08:12:15.530741697 -0400
@@ -524,7 +524,7 @@
 #endif
 }
 
-static const nsDebugImpl kImpl;
+static const nsDebugImpl kImpl = nsDebugImpl();
 
 nsresult
 nsDebugImpl::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
diff -urN a/xpcom/base/nsTraceRefcntImpl.cpp b/xpcom/base/nsTraceRefcntImpl.cpp
--- a/xpcom/base/nsTraceRefcntImpl.cpp	2011-03-18 19:34:13.000000000 -0400
+++ b/xpcom/base/nsTraceRefcntImpl.cpp	2011-04-03 08:12:15.529741697 -0400
@@ -1362,7 +1362,7 @@
   return NS_OK;
 }
 
-static const nsTraceRefcntImpl kTraceRefcntImpl;
+static const nsTraceRefcntImpl kTraceRefcntImpl = nsTraceRefcntImpl();
 
 NS_METHOD
 nsTraceRefcntImpl::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
diff -urN a/xpcom/glue/nsEnumeratorUtils.cpp b/xpcom/glue/nsEnumeratorUtils.cpp
--- a/xpcom/glue/nsEnumeratorUtils.cpp	2011-03-18 19:34:13.000000000 -0400
+++ b/xpcom/glue/nsEnumeratorUtils.cpp	2011-04-03 08:12:15.574741697 -0400
@@ -112,7 +112,7 @@
     return NS_ERROR_UNEXPECTED;
 }
 
-const EmptyEnumeratorImpl EmptyEnumeratorImpl::kInstance;
+const EmptyEnumeratorImpl EmptyEnumeratorImpl::kInstance = EmptyEnumeratorImpl();
 
 nsresult
 NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult)
diff -urN a/xpcom/io/nsUnicharInputStream.cpp b/xpcom/io/nsUnicharInputStream.cpp
--- a/xpcom/io/nsUnicharInputStream.cpp	2011-03-18 19:34:13.000000000 -0400
+++ b/xpcom/io/nsUnicharInputStream.cpp	2011-04-03 08:12:16.023741697 -0400
@@ -464,4 +464,4 @@
 }
 
 const nsSimpleUnicharStreamFactory
-nsSimpleUnicharStreamFactory::kInstance;
+nsSimpleUnicharStreamFactory::kInstance = nsSimpleUnicharStreamFactory();