зеркало из https://github.com/mozilla/pjs.git
bug #78658: checking in Chris Seawoods trivial fix to prevent writing to the console in optimized builds, sr=scc (myself)
This commit is contained in:
Родитель
2c8aa34f9e
Коммит
8a9d1f4a8c
|
@ -1363,10 +1363,11 @@ NS_COM int fputs(const nsCString& aString, FILE* out)
|
|||
* @update gess 11/15/99
|
||||
*/
|
||||
void nsCString::DebugDump(void) const {
|
||||
|
||||
#ifdef DEBUG
|
||||
if(mStr && (eOneByte==mCharSize)) {
|
||||
printf("\n%s",mStr);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -1599,7 +1599,7 @@ NS_COM int fputs(const nsString& aString, FILE* out)
|
|||
* @update gess 11/15/99
|
||||
*/
|
||||
void nsString::DebugDump(void) const {
|
||||
|
||||
#ifdef DEBUG
|
||||
const char* theBuffer=mStr;
|
||||
nsCAutoString temp;
|
||||
|
||||
|
@ -1611,6 +1611,7 @@ void nsString::DebugDump(void) const {
|
|||
if(theBuffer) {
|
||||
printf("\n%s",theBuffer);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1363,10 +1363,11 @@ NS_COM int fputs(const nsCString& aString, FILE* out)
|
|||
* @update gess 11/15/99
|
||||
*/
|
||||
void nsCString::DebugDump(void) const {
|
||||
|
||||
#ifdef DEBUG
|
||||
if(mStr && (eOneByte==mCharSize)) {
|
||||
printf("\n%s",mStr);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -1599,7 +1599,7 @@ NS_COM int fputs(const nsString& aString, FILE* out)
|
|||
* @update gess 11/15/99
|
||||
*/
|
||||
void nsString::DebugDump(void) const {
|
||||
|
||||
#ifdef DEBUG
|
||||
const char* theBuffer=mStr;
|
||||
nsCAutoString temp;
|
||||
|
||||
|
@ -1611,6 +1611,7 @@ void nsString::DebugDump(void) const {
|
|||
if(theBuffer) {
|
||||
printf("\n%s",theBuffer);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче