Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rts/Rendering/IconHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "Rendering/GL/RenderBuffersFwd.h"
#include "Rendering/Textures/TextureAtlas.h"

class UnitDef;
struct UnitDef;
class CTextureRenderAtlas;

namespace icon {
Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Misc/SmoothHeightMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace SmoothHeightMeshNamespace {
*/
class SmoothHeightMesh
{
friend class SmoothHeightMeshDrawer;
friend struct SmoothHeightMeshDrawer;

public:

Expand Down
4 changes: 2 additions & 2 deletions rts/Sim/MoveTypes/Components/MoveTypesComponents.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "System/Ecs/Components/BaseComponents.h"
#include <System/Threading/ThreadPool.h>

struct CUnit;
struct CFeature;
class CUnit;
class CFeature;

namespace MoveTypes {

Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/MoveTypes/MoveDefHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CUnit;
class LuaTable;

namespace MoveTypes {
class CheckCollisionQuery;
struct CheckCollisionQuery;
}

namespace MoveDefs {
Expand Down
4 changes: 2 additions & 2 deletions rts/Sim/MoveTypes/Utils/UnitTrapCheckUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#ifndef UNIT_TRAP_CHECK_UTILS_H__
#define UNIT_TRAP_CHECK_UTILS_H__

struct CFeature;
struct CUnit;
class CFeature;
class CUnit;

namespace MoveTypes {
void RegisterFeatureForUnitTrapCheck(CFeature* object);
Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Path/HAPFS/PathSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "System/float3.h"

class CSolidObject;
class MoveDef;
struct MoveDef;

namespace HAPFS {
struct PathSearch {
Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Path/QTPFS/Components/PathSpeedModInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace QTPFS {

class INode;
struct INode;

struct NodeLayerSpeedInfoSweep {
static constexpr std::size_t page_size = MoveDefHandler::MAX_MOVE_DEFS;
Expand Down
2 changes: 1 addition & 1 deletion rts/System/FileSystem/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace Impl {
return std::string(reinterpret_cast<const char*>(utf8.c_str()));
}
RECOIL_FORCE_INLINE std::string StoreUTF8AsString(const std::u8string_view& utf8) {
return std::string(reinterpret_cast<const char*>(utf8.data()));
return std::string(reinterpret_cast<const char*>(utf8.data()), utf8.size());
}
RECOIL_FORCE_INLINE std::string StorePathAsString(const fs::path& path) {
return StoreUTF8AsString(path.u8string());
Expand Down