mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
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:
commit
f451b09f10
47 changed files with 85 additions and 82 deletions
|
@ -27,7 +27,7 @@
|
|||
#define BSA_MEMORY_STREAM_H
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <istream>
|
||||
#include <components/files/memorystream.hpp>
|
||||
|
||||
namespace Bsa
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "scanner.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
|
||||
#include "exception.hpp"
|
||||
#include "errorhandler.hpp"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <string>
|
||||
#include <iosfwd>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
#include <istream>
|
||||
|
||||
#include "tokenloc.hpp"
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef COMPILER_STREAMERRORHANDLER_H_INCLUDED
|
||||
#define COMPILER_STREAMERRORHANDLER_H_INCLUDED
|
||||
|
||||
#include <ostream>
|
||||
|
||||
#include "errorhandler.hpp"
|
||||
|
||||
namespace Compiler
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <cassert>
|
||||
#include <cwchar>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
|
||||
#include <DbgHelp.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
|
||||
#include <SDL_messagebox.h>
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include <components/esm/esmcommon.hpp>
|
||||
|
||||
#include <istream>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
namespace
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "defs.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <istream>
|
||||
#include <iosfwd>
|
||||
#include <string_view>
|
||||
|
||||
namespace ESM
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "constrainedfilestreambuf.hpp"
|
||||
#include "streamwithbuffer.hpp"
|
||||
|
||||
#include <istream>
|
||||
#include <iosfwd>
|
||||
#include <memory>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <istream>
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
|
||||
namespace Files
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <cstdint>
|
||||
#include <unordered_set>
|
||||
#include <optional>
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <cassert>
|
||||
#include <vector>
|
||||
#include <variant>
|
||||
#include <sstream>
|
||||
|
||||
#include <BulletCollision/CollisionShapes/btBoxShape.h>
|
||||
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <osgViewer/Renderer>
|
||||
#include <osgViewer/Viewer>
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <osgViewer/Renderer>
|
||||
#include <osgViewer/Viewer>
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include "chunkmanager.hpp"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include <osg/Texture2D>
|
||||
#include <osg/Material>
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue