Merge branch 'rm_stream_include' into 'master'

Remove redundant ostream, istream, iostream and sstream includes

See merge request OpenMW/openmw!2097
This commit is contained in:
jvoisin 2022-07-05 11:00:50 +00:00
commit f451b09f10
47 changed files with 85 additions and 82 deletions

View file

@ -27,7 +27,7 @@
#define BSA_MEMORY_STREAM_H
#include <vector>
#include <iostream>
#include <istream>
#include <components/files/memorystream.hpp>
namespace Bsa

View file

@ -1,6 +1,7 @@
#include "scanner.hpp"
#include <cassert>
#include <sstream>
#include "exception.hpp"
#include "errorhandler.hpp"

View file

@ -5,7 +5,7 @@
#include <string>
#include <iosfwd>
#include <vector>
#include <sstream>
#include <istream>
#include "tokenloc.hpp"

View file

@ -1,8 +1,6 @@
#ifndef COMPILER_STREAMERRORHANDLER_H_INCLUDED
#define COMPILER_STREAMERRORHANDLER_H_INCLUDED
#include <ostream>
#include "errorhandler.hpp"
namespace Compiler

View file

@ -2,7 +2,6 @@
#include <cassert>
#include <cwchar>
#include <iostream>
#include <sstream>
#include <thread>

View file

@ -5,9 +5,7 @@
#include <DbgHelp.h>
#include <iostream>
#include <memory>
#include <sstream>
#include <thread>
#include <SDL_messagebox.h>

View file

@ -2,6 +2,9 @@
#include <components/esm/esmcommon.hpp>
#include <istream>
#include <stdexcept>
namespace ESM
{
namespace

View file

@ -4,7 +4,7 @@
#include "defs.hpp"
#include <cstdint>
#include <istream>
#include <iosfwd>
#include <string_view>
namespace ESM

View file

@ -4,7 +4,7 @@
#include "constrainedfilestreambuf.hpp"
#include "streamwithbuffer.hpp"
#include <istream>
#include <iosfwd>
#include <memory>
#include <limits>
#include <string>

View file

@ -3,7 +3,7 @@
#include <array>
#include <cstdint>
#include <istream>
#include <iosfwd>
#include <string>
namespace Files

View file

@ -3,7 +3,6 @@
#include <array>
#include <string>
#include <sstream>
#include <cstdint>
#include <unordered_set>
#include <optional>

View file

@ -5,7 +5,6 @@
#include "nifstream.hpp"
#include <sstream>
#include <map>
#include "niffile.hpp"
@ -103,9 +102,7 @@ struct KeyMapT {
}
else if (count != 0)
{
std::stringstream error;
error << "Unhandled interpolation type: " << mInterpolationType;
nif->file->fail(error.str());
nif->file->fail("Unhandled interpolation type: " + std::to_string(mInterpolationType));
}
if (morph && nif->getVersion() > NIFStream::generateVersion(10,1,0,0))

View file

@ -130,9 +130,7 @@ struct NiBoundingVolume
}
default:
{
std::stringstream error;
error << "Unhandled NiBoundingVolume type: " << type;
nif->file->fail(error.str());
nif->file->fail("Unhandled NiBoundingVolume type: " + std::to_string(type));
}
}
}

View file

@ -3,6 +3,7 @@
#include <cassert>
#include <vector>
#include <variant>
#include <sstream>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>

View file

@ -4,12 +4,10 @@
#include <algorithm>
#include <sstream>
#include <regex>
#include <filesystem>
#include <osg/Program>
#include <filesystem>
#include <fstream>
#include <components/debug/debuglog.hpp>
#include <components/misc/stringops.hpp>
#include <components/settings/settings.hpp>

View file

@ -13,7 +13,6 @@
#include <osgViewer/Renderer>
#include <osgViewer/Viewer>
#include <iostream>
#include <map>
#include <string>

View file

@ -14,7 +14,6 @@
#include <osgViewer/Renderer>
#include <osgViewer/Viewer>
#include <iostream>
#include <map>
#include <string>

View file

@ -1,7 +1,5 @@
#include "chunkmanager.hpp"
#include <sstream>
#include <osg/Texture2D>
#include <osg/Material>

View file

@ -1,8 +1,8 @@
#include "registerarchives.hpp"
#include <set>
#include <sstream>
#include <filesystem>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
@ -33,9 +33,7 @@ namespace VFS
}
else
{
std::stringstream message;
message << "Archive '" << *archive << "' not found";
throw std::runtime_error(message.str());
throw std::runtime_error("Archive '" + *archive + "' not found");
}
}