зеркало из https://github.com/mozilla/gecko-dev.git
Warning fixes. r=Pike, rs=jst.
This commit is contained in:
Родитель
563a0dd3b6
Коммит
e4fef6827b
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче