Follow up to bug 534136, fix TestStaticAtoms test failure. r=sicking
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 09 Mar 2010 09:51:43 +0000
changeset 39148 dcfcfca09b457c2a4f3f9614ef91b867429a7d8d
parent 39147 c82a85fe6cc34aaa88ca194725dcc170b0a6ef48
child 39149 4f08c0415dad53ec407e6188841f868b7cf26d0a
push id12040
push userbugzilla@standard8.plus.com
push dateTue, 09 Mar 2010 09:54:34 +0000
treeherdermozilla-central@dcfcfca09b45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs534136
milestone1.9.3a3pre
Follow up to bug 534136, fix TestStaticAtoms test failure. r=sicking
xpcom/tests/MoreTestingAtoms.cpp
--- a/xpcom/tests/MoreTestingAtoms.cpp
+++ b/xpcom/tests/MoreTestingAtoms.cpp
@@ -39,19 +39,23 @@
 #include "nsStaticAtom.h"
 #include "nsMemory.h"
 
 // define storage for all atoms
 #define MORE_TESTING_ATOM(_name, _value) nsIAtom* MoreTestingAtoms::_name;
 #include "MoreTestingAtomList.h"
 #undef MORE_TESTING_ATOM
 
+#define MORE_TESTING_ATOM(name_, value_) NS_STATIC_ATOM_BUFFER(name_##_buffer, value_)
+#include "MoreTestingAtomList.h"
+#undef MORE_TESTING_ATOM
+
 static const nsStaticAtom MoreTestingAtoms_info[] = {
 
-#define MORE_TESTING_ATOM(name_, value_) NS_STATIC_ATOM(value_, &MoreTestingAtoms::name_),
+#define MORE_TESTING_ATOM(name_, value_) NS_STATIC_ATOM(name_##_buffer, &MoreTestingAtoms::name_),
 #include "MoreTestingAtomList.h"
 #undef MORE_TESTING_ATOM
 };
 
 void MoreTestingAtoms::AddRefAtoms()
 {
   NS_RegisterStaticAtoms(MoreTestingAtoms_info, 
                          NS_ARRAY_LENGTH(MoreTestingAtoms_info));