Backed out changeset 138c4e6a9b45 (bug 1231378)

This commit is contained in:
Carsten "Tomcat" Book 2016-01-12 15:48:55 +01:00
parent 8ce45e3221
commit 1b6f65f586
8 changed files with 10 additions and 25 deletions

View File

@ -177,10 +177,7 @@ class FastBernoulliTrial {
* random number generator; both may not be zero. * random number generator; both may not be zero.
*/ */
FastBernoulliTrial(double aProbability, uint64_t aState0, uint64_t aState1) FastBernoulliTrial(double aProbability, uint64_t aState0, uint64_t aState1)
: mProbability(0) : mGenerator(aState0, aState1)
, mInvLogNotProbability(0)
, mGenerator(aState0, aState1)
, mSkipCount(0)
{ {
setProbability(aProbability); setProbability(aProbability);
} }

View File

@ -95,10 +95,6 @@ class ThreadLocal
}; };
public: public:
ThreadLocal()
: mKey(0), mInited(false)
{}
MOZ_WARN_UNUSED_RESULT inline bool init(); MOZ_WARN_UNUSED_RESULT inline bool init();
inline T get() const; inline T get() const;

View File

@ -84,7 +84,6 @@ nsJAR::nsJAR(): mZip(new nsZipArchive()),
mReleaseTime(PR_INTERVAL_NO_TIMEOUT), mReleaseTime(PR_INTERVAL_NO_TIMEOUT),
mCache(nullptr), mCache(nullptr),
mLock("nsJAR::mLock"), mLock("nsJAR::mLock"),
mMtime(0),
mTotalItemsInManifest(0), mTotalItemsInManifest(0),
mOpened(false) mOpened(false)
{ {
@ -1056,7 +1055,6 @@ NS_IMPL_ISUPPORTS(nsZipReaderCache, nsIZipReaderCache, nsIObserver, nsISupportsW
nsZipReaderCache::nsZipReaderCache() nsZipReaderCache::nsZipReaderCache()
: mLock("nsZipReaderCache.mLock") : mLock("nsZipReaderCache.mLock")
, mCacheSize(0)
, mZips() , mZips()
#ifdef ZIP_CACHE_HIT_RATE #ifdef ZIP_CACHE_HIT_RATE
, ,

View File

@ -102,7 +102,7 @@ class nsJAR final : public nsIZipReader
//-- Private data members //-- Private data members
nsCOMPtr<nsIFile> mZipFile; // The zip/jar file on disk nsCOMPtr<nsIFile> mZipFile; // The zip/jar file on disk
nsCString mOuterZipEntry; // The entry in the zip this zip is reading from nsCString mOuterZipEntry; // The entry in the zip this zip is reading from
RefPtr<nsZipArchive> mZip; // The underlying zip archive RefPtr<nsZipArchive> mZip; // The underlying zip archive
ManifestDataHashtable mManifestData; // Stores metadata for each entry ManifestDataHashtable mManifestData; // Stores metadata for each entry
bool mParsedManifest; // True if manifest has been parsed bool mParsedManifest; // True if manifest has been parsed
nsCOMPtr<nsIX509Cert> mSigningCert; // The entity which signed this file nsCOMPtr<nsIX509Cert> mSigningCert; // The entity which signed this file
@ -166,8 +166,7 @@ public:
NS_DECL_THREADSAFE_ISUPPORTS NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIUTF8STRINGENUMERATOR NS_DECL_NSIUTF8STRINGENUMERATOR
explicit nsJAREnumerator(nsZipFind *aFind) explicit nsJAREnumerator(nsZipFind *aFind) : mFind(aFind), mName(nullptr) {
: mFind(aFind), mName(nullptr), mNameLen(0) {
NS_ASSERTION(mFind, "nsJAREnumerator: Missing zipFind."); NS_ASSERTION(mFind, "nsJAREnumerator: Missing zipFind.");
} }

View File

@ -195,7 +195,6 @@ nsJARInputThunk::IsNonBlocking(bool *nonBlocking)
nsJARChannel::nsJARChannel() nsJARChannel::nsJARChannel()
: mOpened(false) : mOpened(false)
, mContentDisposition(0)
, mAppURI(nullptr) , mAppURI(nullptr)
, mContentLength(-1) , mContentLength(-1)
, mLoadFlags(LOAD_NORMAL) , mLoadFlags(LOAD_NORMAL)

View File

@ -21,8 +21,8 @@ class nsJARInputStream final : public nsIInputStream
{ {
public: public:
nsJARInputStream() : nsJARInputStream() :
mOutSize(0), mInCrc(0), mOutCrc(0), mNameLen(0), mOutSize(0), mInCrc(0), mOutCrc(0), mCurPos(0),
mCurPos(0), mArrPos(0), mMode(MODE_NOTINITED) mMode(MODE_NOTINITED)
{ {
memset(&mZs, 0, sizeof(z_stream)); memset(&mZs, 0, sizeof(z_stream));
} }
@ -47,7 +47,7 @@ class nsJARInputStream final : public nsIInputStream
z_stream mZs; // zip data structure z_stream mZs; // zip data structure
/* For directory reading */ /* For directory reading */
RefPtr<nsJAR> mJar; // string reference to zipreader RefPtr<nsJAR> mJar; // string reference to zipreader
uint32_t mNameLen; // length of dirname uint32_t mNameLen; // length of dirname
nsCString mBuffer; // storage for generated text of stream nsCString mBuffer; // storage for generated text of stream
uint32_t mCurPos; // Current position in buffer uint32_t mCurPos; // Current position in buffer

View File

@ -52,10 +52,9 @@ NS_IMPL_ISUPPORTS(nsZipWriter, nsIZipWriter,
nsIRequestObserver) nsIRequestObserver)
nsZipWriter::nsZipWriter() nsZipWriter::nsZipWriter()
: mCDSOffset(0) {
, mCDSDirty(false) mInQueue = false;
, mInQueue(false) }
{}
nsZipWriter::~nsZipWriter() nsZipWriter::~nsZipWriter()
{ {

View File

@ -200,10 +200,7 @@ protected:
virtual ~nsPrefBranch(); virtual ~nsPrefBranch();
nsPrefBranch() /* disallow use of this constructer */ nsPrefBranch() /* disallow use of this constructer */
: mPrefRootLength(0) { }
, mIsDefault(false)
, mFreeingObserverList(false)
{}
nsresult GetDefaultFromPropertiesFile(const char *aPrefName, char16_t **return_buf); nsresult GetDefaultFromPropertiesFile(const char *aPrefName, char16_t **return_buf);
// As SetCharPref, but without any check on the length of |aValue| // As SetCharPref, but without any check on the length of |aValue|