mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-24 00:57:06 +02:00
trunk/branch integration: fix warning
This commit is contained in:
parent
31c6d3e855
commit
090d93dc6e
@ -117,7 +117,7 @@ int LineEndingConverterStreamBuf::writeToDevice(char c)
|
|||||||
{
|
{
|
||||||
poco_assert_dbg (_pOstr);
|
poco_assert_dbg (_pOstr);
|
||||||
|
|
||||||
if (c == '\r' || c == '\n' && _lastChar != '\r')
|
if (c == '\r' || (c == '\n' && _lastChar != '\r'))
|
||||||
_pOstr->write(_newLine.data(), (std::streamsize) _newLine.length());
|
_pOstr->write(_newLine.data(), (std::streamsize) _newLine.length());
|
||||||
if (c != '\n' && c != '\r')
|
if (c != '\n' && c != '\r')
|
||||||
_pOstr->put(c);
|
_pOstr->put(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user