mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 975037, part 3 - Remove trailing whitespace from nsPersistentProperties. r=froydnj
This commit is contained in:
parent
2d753168ba
commit
50fa6a83f3
@ -339,9 +339,9 @@ NS_METHOD nsPropertiesParser::SegmentWriter(nsIUnicharInputStream* aStream,
|
||||
uint32_t aCount,
|
||||
uint32_t *aWriteCount)
|
||||
{
|
||||
nsPropertiesParser *parser =
|
||||
nsPropertiesParser *parser =
|
||||
static_cast<nsPropertiesParser *>(aClosure);
|
||||
|
||||
|
||||
parser->ParseBuffer(aFromSegment, aCount);
|
||||
|
||||
*aWriteCount = aCount;
|
||||
@ -497,7 +497,7 @@ nsPersistentProperties::Load(nsIInputStream *aIn)
|
||||
// We may have an unprocessed value at this point
|
||||
// if the last line did not have a proper line ending.
|
||||
if (parser.GetState() == eParserState_Value) {
|
||||
nsAutoString oldValue;
|
||||
nsAutoString oldValue;
|
||||
parser.FinishValueState(oldValue);
|
||||
}
|
||||
|
||||
@ -681,4 +681,3 @@ nsPropertyElement::SetValue(const nsAString& aValue)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user