Fix an erroneous debug print; fix some build warnings

This commit is contained in:
akkana%netscape.com 1999-09-13 21:39:51 +00:00
Родитель 7992d6003f
Коммит 488d492da2
2 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -82,8 +82,6 @@
#include "nsEditorUtils.h" #include "nsEditorUtils.h"
#include "nsIPref.h" #include "nsIPref.h"
#include "prprf.h"
const unsigned char nbsp = 160; const unsigned char nbsp = 160;
// HACK - CID for NavDTD until we can get at dtd via the document // HACK - CID for NavDTD until we can get at dtd via the document
@ -2763,7 +2761,7 @@ NS_IMETHODIMP nsHTMLEditor::GetBodyWrapWidth(PRInt32 *aWrapColumn)
*aWrapColumn = stylePosition->mWidth.GetIntValue(); *aWrapColumn = stylePosition->mWidth.GetIntValue();
else { else {
#ifdef DEBUG_akkana #ifdef DEBUG_akkana
printf("Can't set wrap column: style unit is %d\n", printf("Can't get wrap column: style unit is %d\n",
stylePosition->mWidth.GetUnit()); stylePosition->mWidth.GetUnit());
#endif #endif
*aWrapColumn = -1; *aWrapColumn = -1;
@ -3231,7 +3229,7 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
{ // default processing { // default processing
nsresult rv = NS_OK; rv = NS_OK;
// special-case for empty document when requesting plain text, // special-case for empty document when requesting plain text,
// to account for the bogus text node // to account for the bogus text node

Просмотреть файл

@ -82,8 +82,6 @@
#include "nsEditorUtils.h" #include "nsEditorUtils.h"
#include "nsIPref.h" #include "nsIPref.h"
#include "prprf.h"
const unsigned char nbsp = 160; const unsigned char nbsp = 160;
// HACK - CID for NavDTD until we can get at dtd via the document // HACK - CID for NavDTD until we can get at dtd via the document
@ -2763,7 +2761,7 @@ NS_IMETHODIMP nsHTMLEditor::GetBodyWrapWidth(PRInt32 *aWrapColumn)
*aWrapColumn = stylePosition->mWidth.GetIntValue(); *aWrapColumn = stylePosition->mWidth.GetIntValue();
else { else {
#ifdef DEBUG_akkana #ifdef DEBUG_akkana
printf("Can't set wrap column: style unit is %d\n", printf("Can't get wrap column: style unit is %d\n",
stylePosition->mWidth.GetUnit()); stylePosition->mWidth.GetUnit());
#endif #endif
*aWrapColumn = -1; *aWrapColumn = -1;
@ -3231,7 +3229,7 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
{ // default processing { // default processing
nsresult rv = NS_OK; rv = NS_OK;
// special-case for empty document when requesting plain text, // special-case for empty document when requesting plain text,
// to account for the bogus text node // to account for the bogus text node