STYLE: update applications/tests to use SpanStream/CharStream

This commit is contained in:
Mark Olesen
2023-10-04 18:29:16 +02:00
committed by Andrew Heather
parent 3693d61e6c
commit 0fb2c8eb1c
28 changed files with 99 additions and 93 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
Copyright (C) 2022-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -35,7 +35,7 @@ Description
#include "CompactListList.H"
#include "IndirectList.H"
#include "IOstreams.H"
#include "StringStream.H"
#include "SpanStream.H"
#include "faceList.H"
using namespace Foam;
@ -126,20 +126,20 @@ int main(int argc, char *argv[])
{
// IO
OStringStream ostr;
OCharStream ostr;
ostr << cll4;
IStringStream istr(ostr.str());
ISpanStream istr(ostr.view());
CompactListList<label> cll5(istr);
Info<< "cll5 = " << cll5 << endl;
}
{
// IO
cll4.clear();
OStringStream ostr;
OCharStream ostr;
ostr << cll4;
IStringStream istr(ostr.str());
ISpanStream istr(ostr.view());
CompactListList<label> cll5(istr);
Info<< "cll5 = " << cll5 << endl;
}