Bug 1121900 - [flatfish] build break by "error: undefined reference to 'mozilla::dom::MozIsoDepTech::mTechnology'". r=yoshi
authorDimi Lee <dlee@mozilla.com>
Wed, 04 Mar 2015 11:21:49 +0800
changeset 231921 db595b5a24578a6fffab652994e7928221f08562
parent 231920 9652fe730f2cc0094c62b28f07767d7f5f0c6301
child 231922 839a1eb14d2071211f808b3f39b0ff0431016812
push id14273
push useryhuang@mozilla.com
push dateThu, 05 Mar 2015 04:08:49 +0000
treeherderb2g-inbound@db595b5a2457 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi
bugs1121900
milestone39.0a1
Bug 1121900 - [flatfish] build break by "error: undefined reference to 'mozilla::dom::MozIsoDepTech::mTechnology'". r=yoshi
dom/nfc/MozIsoDepTech.cpp
dom/nfc/MozIsoDepTech.h
--- a/dom/nfc/MozIsoDepTech.cpp
+++ b/dom/nfc/MozIsoDepTech.cpp
@@ -31,16 +31,18 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
 
 NS_IMPL_CYCLE_COLLECTING_ADDREF(MozIsoDepTech)
 NS_IMPL_CYCLE_COLLECTING_RELEASE(MozIsoDepTech)
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MozIsoDepTech)
   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
   NS_INTERFACE_MAP_ENTRY(nsISupports)
 NS_INTERFACE_MAP_END
 
+const NFCTechType MozIsoDepTech::mTechnology = NFCTechType::ISO_DEP;
+
 /* static */
 already_AddRefed<MozIsoDepTech>
 MozIsoDepTech::Constructor(const GlobalObject& aGlobal,
                            MozNFCTag& aNFCTag,
                            ErrorResult& aRv)
 {
   ErrorResult rv;
   nsCOMPtr<nsPIDOMWindow> win = do_QueryInterface(aGlobal.GetAsSupports());
--- a/dom/nfc/MozIsoDepTech.h
+++ b/dom/nfc/MozIsoDepTech.h
@@ -40,15 +40,15 @@ public:
 
 private:
   MozIsoDepTech(nsPIDOMWindow* aWindow, MozNFCTag& aNFCTag);
   virtual ~MozIsoDepTech();
 
   nsRefPtr<nsPIDOMWindow> mWindow;
   nsRefPtr<MozNFCTag> mTag;
 
-  static const NFCTechType mTechnology = NFCTechType::ISO_DEP;
+  static const NFCTechType mTechnology;
 };
 
 } // namespace dom
 } // namespace mozilla
 
 #endif  // mozilla_dom_nfc_MozIsoDepTech_h__