Base: improve initialization according to cpp core guidelines

This commit is contained in:
wmayer
2022-06-04 13:17:27 +02:00
parent ca9355b5cb
commit 31047be9fb
4 changed files with 22 additions and 47 deletions

View File

@@ -426,7 +426,7 @@ IODeviceOStreambuf::seekpos(std::streambuf::pos_type pos,
// ----------------------------------------------------------------------
IODeviceIStreambuf::IODeviceIStreambuf(QIODevice* dev) : device(dev)
IODeviceIStreambuf::IODeviceIStreambuf(QIODevice* dev) : device(dev), buffer{}
{
setg (buffer+pbSize, // beginning of putback area
buffer+pbSize, // read position