diff --git a/gfx/src/windows/nsDeviceContextSpecWin.cpp b/gfx/src/windows/nsDeviceContextSpecWin.cpp index f6f1e039828e..e6183c4404da 100644 --- a/gfx/src/windows/nsDeviceContextSpecWin.cpp +++ b/gfx/src/windows/nsDeviceContextSpecWin.cpp @@ -61,8 +61,8 @@ #include "prlog.h" #ifdef PR_LOGGING -extern PRLogModuleInfo * kPrintingLogMod; -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +extern PRLogModuleInfo * kGfxPrintingLogMod; +#define PR_PL(_p1) PR_LOG(kGfxPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/gfx/src/windows/nsDeviceContextWin.cpp b/gfx/src/windows/nsDeviceContextWin.cpp index 7f437070ea0f..e71cb5119137 100644 --- a/gfx/src/windows/nsDeviceContextWin.cpp +++ b/gfx/src/windows/nsDeviceContextWin.cpp @@ -60,8 +60,8 @@ static char* nav4rounding = "font.size.nav4rounding"; #include "prlog.h" #ifdef PR_LOGGING -PRLogModuleInfo * kPrintingLogMod = PR_NewLogModule("printing"); -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +PRLogModuleInfo * kGfxPrintingLogMod = PR_NewLogModule("printing-gfx"); +#define PR_PL(_p1) PR_LOG(kGfxPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/layout/generic/nsPageFrame.cpp b/layout/generic/nsPageFrame.cpp index 5bb46961de35..312ba1fee4f1 100644 --- a/layout/generic/nsPageFrame.cpp +++ b/layout/generic/nsPageFrame.cpp @@ -87,8 +87,8 @@ static NS_DEFINE_CID(kCChildCID, NS_CHILD_CID); #include "prlog.h" #ifdef PR_LOGGING -extern PRLogModuleInfo * kPrintingLogMod; -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +extern PRLogModuleInfo * kLayoutPrintingLogMod; +#define PR_PL(_p1) PR_LOG(kLayoutPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/layout/generic/nsSimplePageSequence.cpp b/layout/generic/nsSimplePageSequence.cpp index fe29fde7f600..a504fe5ec6f6 100644 --- a/layout/generic/nsSimplePageSequence.cpp +++ b/layout/generic/nsSimplePageSequence.cpp @@ -87,8 +87,8 @@ static NS_DEFINE_CID(kRegionCID, NS_REGION_CID); #include "prlog.h" #ifdef PR_LOGGING -PRLogModuleInfo * kPrintingLogMod = PR_NewLogModule("printing"); -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +PRLogModuleInfo * kLayoutPrintingLogMod = PR_NewLogModule("printing-layout"); +#define PR_PL(_p1) PR_LOG(kLayoutPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/layout/html/base/src/nsPageFrame.cpp b/layout/html/base/src/nsPageFrame.cpp index 5bb46961de35..312ba1fee4f1 100644 --- a/layout/html/base/src/nsPageFrame.cpp +++ b/layout/html/base/src/nsPageFrame.cpp @@ -87,8 +87,8 @@ static NS_DEFINE_CID(kCChildCID, NS_CHILD_CID); #include "prlog.h" #ifdef PR_LOGGING -extern PRLogModuleInfo * kPrintingLogMod; -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +extern PRLogModuleInfo * kLayoutPrintingLogMod; +#define PR_PL(_p1) PR_LOG(kLayoutPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/layout/html/base/src/nsSimplePageSequence.cpp b/layout/html/base/src/nsSimplePageSequence.cpp index fe29fde7f600..a504fe5ec6f6 100644 --- a/layout/html/base/src/nsSimplePageSequence.cpp +++ b/layout/html/base/src/nsSimplePageSequence.cpp @@ -87,8 +87,8 @@ static NS_DEFINE_CID(kRegionCID, NS_REGION_CID); #include "prlog.h" #ifdef PR_LOGGING -PRLogModuleInfo * kPrintingLogMod = PR_NewLogModule("printing"); -#define PR_PL(_p1) PR_LOG(kPrintingLogMod, PR_LOG_DEBUG, _p1) +PRLogModuleInfo * kLayoutPrintingLogMod = PR_NewLogModule("printing-layout"); +#define PR_PL(_p1) PR_LOG(kLayoutPrintingLogMod, PR_LOG_DEBUG, _p1) #else #define PR_PL(_p1) #endif diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index e0cf2dce7ff1..45b30947a924 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -349,7 +349,7 @@ void DisplayNoDefaultPluginDialog(const char *mimeType, nsIPrompt *prompt) //////////////////////////////////////////////////////////////////////// // flat file reg funcs static -PRBool ReadSectionHeader(nsManifestLineReader& reader, const char *token) +PRBool ReadSectionHeader(nsPluginManifestLineReader& reader, const char *token) { do { if (*reader.LinePtr() == '[') { @@ -5397,7 +5397,7 @@ nsPluginHostImpl::ReadPluginInfo() return NS_OK; // ERROR CONDITION } - nsManifestLineReader reader; + nsPluginManifestLineReader reader; char* registry = reader.Init(flen); if (!registry) { return NS_ERROR_OUT_OF_MEMORY; diff --git a/modules/plugin/base/src/nsPluginManifestLineReader.h b/modules/plugin/base/src/nsPluginManifestLineReader.h index 4490f4b3e55c..8d3f65926ece 100644 --- a/modules/plugin/base/src/nsPluginManifestLineReader.h +++ b/modules/plugin/base/src/nsPluginManifestLineReader.h @@ -54,11 +54,11 @@ #define PLUGIN_REGISTRY_END_OF_LINE_MARKER '$' -class nsManifestLineReader +class nsPluginManifestLineReader { public: - nsManifestLineReader() {mBase = mCur = mNext = mLimit = 0;} - ~nsManifestLineReader() {delete [] mBase;} + nsPluginManifestLineReader() {mBase = mCur = mNext = mLimit = 0;} + ~nsPluginManifestLineReader() { if (mBase) delete[] mBase; mBase=0;} char* Init(PRUint32 flen) {