Missing braces :)

pull/288/head
csharptest 13 years ago committed by rogerk
parent f52ec95ad5
commit c86b504409
  1. 4
      src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
  2. 6
      src/ProtocolBuffers.Serialization/XmlFormatWriter.cs
  3. 2
      src/ProtocolBuffers/CodedOutputStream.cs

@ -246,8 +246,10 @@ namespace Google.ProtocolBuffers.Serialization
{
if (disposing)
{
while(_counter.Count > 1)
while (_counter.Count > 1)
{
WriteMessageEnd();
}
}
base.Dispose(disposing);

@ -78,8 +78,10 @@ namespace Google.ProtocolBuffers.Serialization
{
if (disposing)
{
while(_messageOpenCount > 0)
while (_messageOpenCount > 0)
{
WriteMessageEnd();
}
_output.Close();
}
@ -163,7 +165,9 @@ namespace Google.ProtocolBuffers.Serialization
public override void WriteMessageEnd()
{
if (_messageOpenCount <= 0)
{
throw new InvalidOperationException();
}
_output.WriteEndElement();
_output.Flush();

@ -131,7 +131,9 @@ namespace Google.ProtocolBuffers
if (output != null)
{
if (position > 0)
{
Flush();
}
output.Dispose();
}
}

Loading…
Cancel
Save