Warning fixes. r=Pike, rs=jst.

This commit is contained in:
peterv%netscape.com 2005-11-02 07:38:16 +00:00
Родитель 563a0dd3b6
Коммит e4fef6827b
2 изменённых файлов: 5 добавлений и 4 удалений

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

@ -109,10 +109,12 @@ void txOutputFormat::merge(txOutputFormat& aOutputFormat)
void txOutputFormat::setFromDefaults()
{
if (mMethod == eMethodNotSet)
mMethod = eXMLOutput;
switch (mMethod) {
case eMethodNotSet:
{
mMethod = eXMLOutput;
// Fall through
}
case eXMLOutput:
{
if (mVersion.isEmpty())

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

@ -233,7 +233,6 @@ nsresult txPatternParser::createLocPathPattern(ExprLexer& aLexer,
nsresult txPatternParser::createIdPattern(ExprLexer& aLexer,
txPattern*& aPattern)
{
nsresult rv = NS_OK;
// check for '(' Literal ')'
if (aLexer.nextToken()->type != Token::L_PAREN &&
aLexer.peek()->type != Token::LITERAL)