Bug 823553 - Fix build error in Variant.h on MSVC 2008 and Solaris by not taking double-references. r=mak
authorJustin Lebar <justin.lebar@gmail.com>
Thu, 20 Dec 2012 15:44:25 -0500
changeset 116709 4e71802dec3a4e10ea6fa717343fcaf9ff9630be
parent 116708 76634f2005ba386bb09a8f037a4202cd3392b56e
child 116710 fc2cce7ad2d058d650d62f1d83c75de141d94c90
push id24072
push userMs2ger@gmail.com
push dateSat, 22 Dec 2012 13:18:22 +0000
treeherdermozilla-central@ea373e534245 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs823553
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 823553 - Fix build error in Variant.h on MSVC 2008 and Solaris by not taking double-references. r=mak
storage/src/Variant.h
--- a/storage/src/Variant.h
+++ b/storage/src/Variant.h
@@ -310,17 +310,17 @@ public:
 
 ////////////////////////////////////////////////////////////////////////////////
 //// Template Implementation
 
 template <typename DataType>
 class Variant : public Variant_base
 {
 public:
-  Variant(const typename variant_storage_traits<DataType>::ConstructorType& aData)
+  Variant(const typename variant_storage_traits<DataType>::ConstructorType aData)
   {
     variant_storage_traits<DataType>::storage_conversion(aData, &mData);
   }
 
   NS_IMETHOD GetDataType(uint16_t *_type)
   {
     *_type = variant_traits<DataType>::type();
     return NS_OK;