Bug 445951 - missing keyword 'public' in xpcom/glue/nsAutoLock.h, r=bsmedberg
authorUli Link <ul.mcamafia@linkitup.de>
Mon, 18 Aug 2008 20:39:19 +0200
changeset 17007 2f7064a3826124277853de44e8f9bef768630469
parent 17006 e1c038d8c4989e1945068083d59f54e98e0ef3e3
child 17008 9d17b503e14461410892763d076b8f94dbfee386
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbsmedberg
bugs445951
milestone1.9.1a2pre
Bug 445951 - missing keyword 'public' in xpcom/glue/nsAutoLock.h, r=bsmedberg
xpcom/components/nsCategoryManager.cpp
xpcom/glue/nsAutoLock.h
xpcom/io/nsFastLoadFile.h
xpcom/io/nsUnicharInputStream.h
--- a/xpcom/components/nsCategoryManager.cpp
+++ b/xpcom/components/nsCategoryManager.cpp
@@ -81,17 +81,17 @@ class nsIComponentLoaderManager;
 char* ArenaStrdup(const char* s, PLArenaPool* aArena);
 
 //
 // BaseStringEnumerator is subclassed by EntryEnumerator and
 // CategoryEnumerator
 //
 class BaseStringEnumerator
   : public nsISimpleEnumerator,
-           nsIUTF8StringEnumerator
+    private nsIUTF8StringEnumerator
 {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_NSISIMPLEENUMERATOR
   NS_DECL_NSIUTF8STRINGENUMERATOR
 
 protected:
   // Callback function for NS_QuickSort to sort mArray
--- a/xpcom/glue/nsAutoLock.h
+++ b/xpcom/glue/nsAutoLock.h
@@ -245,17 +245,17 @@ public:
      void unlock() {
         PR_ASSERT(mLocked);
         PR_Unlock(mLock);
         mLocked = PR_FALSE;
         Hide();
     }
 };
 
-class nsAutoUnlock : nsAutoUnlockBase
+class nsAutoUnlock : private nsAutoUnlockBase
 {
 private:
     PRLock *mLock;
      
 public:
     nsAutoUnlock(PRLock *lock) : 
         nsAutoUnlockBase(lock),
         mLock(lock)
--- a/xpcom/io/nsFastLoadFile.h
+++ b/xpcom/io/nsFastLoadFile.h
@@ -534,17 +534,17 @@ NS_NewFastLoadFileWriter(nsIObjectOutput
  * Subclass of nsFastLoadFileWriter, friend of nsFastLoadFileReader which it
  * wraps when a FastLoad file needs to be updated.  The wrapped reader can be
  * used to demulitplex data for documents already in the FastLoad file, while
  * the updater writes new data over the old footer, then writes a new footer
  * that maps all data on Close.
  */
 class nsFastLoadFileUpdater
     : public nsFastLoadFileWriter,
-             nsIFastLoadFileIO
+      private nsIFastLoadFileIO
 {
   public:
     nsFastLoadFileUpdater(nsIOutputStream* aOutputStream)
       : nsFastLoadFileWriter(aOutputStream, nsnull) {
         MOZ_COUNT_CTOR(nsFastLoadFileUpdater);
     }
 
     virtual ~nsFastLoadFileUpdater() {
--- a/xpcom/io/nsUnicharInputStream.h
+++ b/xpcom/io/nsUnicharInputStream.h
@@ -42,17 +42,18 @@
 #include "nsIUnicharInputStream.h"
 #include "nsIFactory.h"
 
 // {428DCA6F-1A0F-4cda-B516-0D5244745A6A}
 #define NS_SIMPLE_UNICHAR_STREAM_FACTORY_CID \
 { 0x428dca6f, 0x1a0f, 0x4cda, { 0xb5, 0x16, 0xd, 0x52, 0x44, 0x74, 0x5a, 0x6a } }
 
 class nsSimpleUnicharStreamFactory :
-  public nsIFactory, nsISimpleUnicharStreamFactory
+  public nsIFactory, 
+  private nsISimpleUnicharStreamFactory
 {
 public:
   NS_DECL_ISUPPORTS_INHERITED
   NS_DECL_NSIFACTORY
   NS_DECL_NSISIMPLEUNICHARSTREAMFACTORY
 
   static NS_COM nsSimpleUnicharStreamFactory* GetInstance();