Skip to content

Commit 3d6c468

Browse files
Remove <vector> from globals.h
1 parent 99fbff1 commit 3d6c468

274 files changed

Lines changed: 1484 additions & 1465 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/Etterna/Actor/Base/Actor.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ REGISTER_ACTOR_CLASS_WITH_NAME(HiddenActor, Actor);
3838
float Actor::g_fCurrentBGMTime = 0, Actor::g_fCurrentBGMBeat;
3939
float Actor::g_fCurrentBGMTimeNoOffset = 0,
4040
Actor::g_fCurrentBGMBeatNoOffset = 0;
41-
vector<float> Actor::g_vfCurrentBGMBeatPlayer(NUM_PlayerNumber, 0);
42-
vector<float> Actor::g_vfCurrentBGMBeatPlayerNoOffset(NUM_PlayerNumber, 0);
41+
std::vector<float> Actor::g_vfCurrentBGMBeatPlayer(NUM_PlayerNumber, 0);
42+
std::vector<float> Actor::g_vfCurrentBGMBeatPlayerNoOffset(NUM_PlayerNumber, 0);
4343

4444
Actor*
4545
Actor::Copy() const

‎src/Etterna/Actor/Base/Actor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ class Actor : public MessageSubscriber
868868

869869
// Stuff for effects
870870
#if defined(SSC_FUTURES) // be able to stack effects
871-
vector<Effect> m_Effects;
871+
std::vector<Effect> m_Effects;
872872
#else // compatibility
873873
Effect m_Effect;
874874
#endif

‎src/Etterna/Actor/Base/ActorFrame.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ ActorFrame::AddChild(Actor* pActor)
147147
{
148148
#ifdef DEBUG
149149
// check that this Actor isn't already added.
150-
vector<Actor*>::iterator iter =
150+
std::vector<Actor*>::iterator iter =
151151
find(m_SubActors.begin(), m_SubActors.end(), pActor);
152152
if (iter != m_SubActors.end())
153153
Dialog::OK(ssprintf("Actor \"%s\" adds child \"%s\" more than once",
@@ -808,7 +808,7 @@ class LunaActorFrame : public Luna<ActorFrame>
808808
{
809809
luaL_checktype(L, 1, LUA_TTABLE);
810810
lua_pushvalue(L, 1);
811-
vector<float> coords;
811+
std::vector<float> coords;
812812
LuaHelpers::ReadArrayFromTable(coords, L);
813813
lua_pop(L, 1);
814814
if (coords.size() != 3) {

‎src/Etterna/Actor/Base/ActorMultiVertex.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,14 @@ ActorMultiVertex::SetVertsFromSplinesInternal(size_t num_splines, size_t offset)
332332
AMV_DestTweenState().GetSafeNumToDraw(AMV_DestTweenState()._DrawMode,
333333
AMV_DestTweenState().NumToDraw) -
334334
offset;
335-
vector<float> tper(num_splines, 0.0f);
335+
std::vector<float> tper(num_splines, 0.0f);
336336
const auto num_parts =
337337
(static_cast<float>(num_verts) / static_cast<float>(num_splines)) - 1.0f;
338338
for (size_t i = 0; i < num_splines; ++i) {
339339
tper[i] = _splines[i].get_max_t() / num_parts;
340340
}
341341
for (size_t v = 0; v < num_verts; ++v) {
342-
vector<float> pos;
342+
std::vector<float> pos;
343343
const int spi = v % num_splines;
344344
const auto part = static_cast<float>(v) / num_splines;
345345
_splines[spi].evaluate(part * tper[spi], pos);
@@ -1079,7 +1079,7 @@ class LunaActorMultiVertex : public Luna<ActorMultiVertex>
10791079
if (tex == nullptr) {
10801080
luaL_error(L, "The texture must be set before adding states.");
10811081
}
1082-
vector<ActorMultiVertex::State> new_states;
1082+
std::vector<ActorMultiVertex::State> new_states;
10831083
const auto num_states = lua_objlen(L, 1);
10841084
new_states.resize(num_states);
10851085
for (size_t i = 0; i < num_states; ++i) {

‎src/Etterna/Actor/Base/ActorMultiVertex.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class ActorMultiVertex : public Actor
5757
void SetDrawState(DrawMode dm, int first, int num);
5858
[[nodiscard]] int GetSafeNumToDraw(DrawMode dm, int num) const;
5959

60-
vector<RageSpriteVertex> vertices;
61-
vector<size_t> quad_states;
60+
std::vector<RageSpriteVertex> vertices;
61+
std::vector<size_t> quad_states;
6262

6363
DrawMode _DrawMode{ DrawMode_Invalid };
6464
int FirstToDraw{ 0 };
@@ -172,7 +172,7 @@ class ActorMultiVertex : public Actor
172172
ASSERT(i < _states.size());
173173
_states[i] = s;
174174
}
175-
void SetStateProperties(const vector<State>& new_states)
175+
void SetStateProperties(const std::vector<State>& new_states)
176176
{
177177
_states = new_states;
178178
SetState(0);
@@ -212,8 +212,8 @@ class ActorMultiVertex : public Actor
212212
private:
213213
RageTexture* _Texture;
214214

215-
vector<RageSpriteVertex> _Vertices;
216-
vector<AMV_TweenState> AMV_Tweens;
215+
std::vector<RageSpriteVertex> _Vertices;
216+
std::vector<AMV_TweenState> AMV_Tweens;
217217
AMV_TweenState AMV_current;
218218
AMV_TweenState AMV_start;
219219

@@ -225,12 +225,12 @@ class ActorMultiVertex : public Actor
225225

226226
// Four splines for controlling vert positions, because quads drawmode
227227
// requires four. -Kyz
228-
vector<CubicSplineN> _splines;
228+
std::vector<CubicSplineN> _splines;
229229

230230
bool _skip_next_update;
231231
float _secs_into_state;
232232
size_t _cur_state;
233-
vector<State> _states;
233+
std::vector<State> _states;
234234
};
235235

236236
#endif // ACTOR_MULTI_VERTEX_H

‎src/Etterna/Actor/Base/ActorScroller.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ ActorScroller::PositionItemsAndDrawPrimitives(bool bDrawPrimitives)
287287
iLastItemToDraw = std::clamp(iLastItemToDraw, 0, m_iNumItems);
288288
}
289289

290-
vector<Actor*> subs;
290+
std::vector<Actor*> subs;
291291

292292
{
293293
// Shift m_SubActors so iFirstItemToDraw is at the beginning.

‎src/Etterna/Actor/Base/ActorUtil.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ActorUtil::ResolvePath(std::string& sPath,
5454
// so "foo" doesn't partial match "foobar" if "foo" exists.
5555
const auto ft = FILEMAN->GetFileType(sPath);
5656
if (ft != RageFileManager::TYPE_FILE && ft != RageFileManager::TYPE_DIR) {
57-
vector<std::string> asPaths;
57+
std::vector<std::string> asPaths;
5858
GetDirListing(sPath + "*", asPaths, false, true); // return path too
5959

6060
if (asPaths.empty()) {
@@ -476,7 +476,7 @@ CompareActorsByZPosition(const Actor* p1, const Actor* p2)
476476
}
477477

478478
void
479-
ActorUtil::SortByZPosition(vector<Actor*>& vActors)
479+
ActorUtil::SortByZPosition(std::vector<Actor*>& vActors)
480480
{
481481
// Preserve ordering of Actors with equal Z positions.
482482
stable_sort(vActors.begin(), vActors.end(), CompareActorsByZPosition);
@@ -492,7 +492,7 @@ LuaXType(FileType);
492492

493493
// convenience so the for-loop lines can be shorter.
494494
typedef map<std::string, FileType> etft_cont_t;
495-
typedef map<FileType, vector<std::string>> fttel_cont_t;
495+
typedef map<FileType, std::vector<std::string>> fttel_cont_t;
496496
etft_cont_t ExtensionToFileType;
497497
fttel_cont_t FileTypeToExtensionList;
498498

@@ -548,14 +548,14 @@ ActorUtil::InitFileTypeLists()
548548
}
549549
}
550550

551-
vector<std::string> const&
551+
std::vector<std::string> const&
552552
ActorUtil::GetTypeExtensionList(FileType ft)
553553
{
554554
return FileTypeToExtensionList[ft];
555555
}
556556

557557
void
558-
ActorUtil::AddTypeExtensionsToList(FileType ft, vector<std::string>& add_to)
558+
ActorUtil::AddTypeExtensionsToList(FileType ft, std::vector<std::string>& add_to)
559559
{
560560
auto ext_list = FileTypeToExtensionList.find(ft);
561561
if (ext_list != FileTypeToExtensionList.end()) {

‎src/Etterna/Actor/Base/BitmapText.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ REGISTER_ACTOR_CLASS(ColorBitmapText);
3939
#define RAINBOW_COLOR(n) \
4040
THEME->GetMetricC("BitmapText", ssprintf("RainbowColor%i", (n) + 1))
4141

42-
static vector<RageColor> RAINBOW_COLORS;
42+
static std::vector<RageColor> RAINBOW_COLORS;
4343

4444
BitmapText::BitmapText()
4545
{
@@ -574,11 +574,11 @@ BitmapText::SetTextInternal()
574574
/* "...I can add Japanese wrapping, at least. We could handle hyphens
575575
* and soft hyphens and pretty easily, too." -glenn */
576576
// TODO: Move this wrapping logic into Font.
577-
vector<std::string> asLines;
577+
std::vector<std::string> asLines;
578578
split(m_sText, "\n", asLines, false);
579579

580580
for (auto& asLine : asLines) {
581-
vector<std::string> asWords;
581+
std::vector<std::string> asWords;
582582
split(asLine, " ", asWords);
583583

584584
std::string sCurLine;
@@ -832,7 +832,7 @@ BitmapText::DrawPrimitives()
832832
else
833833
iEnd = i + attr.length * 4;
834834
iEnd = min(iEnd, m_aVertices.size());
835-
vector<RageColor> temp_attr_diffuse(NUM_DIFFUSE_COLORS,
835+
std::vector<RageColor> temp_attr_diffuse(NUM_DIFFUSE_COLORS,
836836
m_internalDiffuse);
837837
for (size_t c = 0; c < NUM_DIFFUSE_COLORS; ++c) {
838838
temp_attr_diffuse[c] *= attr.diffuse[c];
@@ -850,7 +850,7 @@ BitmapText::DrawPrimitives()
850850
}
851851

852852
// apply jitter to verts
853-
vector<RageVector3> vGlyphJitter;
853+
std::vector<RageVector3> vGlyphJitter;
854854
if (m_bJitter) {
855855
const int iSeed = lround(RageTimer::GetTimeSinceStart() * 8);
856856
RandomGen rnd(iSeed);

‎src/Etterna/Actor/Base/Model.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ Model::AdvanceFrame(float fDeltaTime)
666666
void
667667
Model::SetBones(const msAnimation* pAnimation,
668668
float fFrame,
669-
vector<myBone_t>& vpBones)
669+
std::vector<myBone_t>& vpBones)
670670
{
671671
for (size_t i = 0; i < pAnimation->Bones.size(); ++i) {
672672
const auto* pBone = &pAnimation->Bones[i];

‎src/Etterna/Actor/Base/Model.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ class Model : public Actor
6969
RageModelGeometry* m_pGeometry;
7070

7171
float m_animation_length_seconds;
72-
vector<msMaterial> m_Materials;
72+
std::vector<msMaterial> m_Materials;
7373
std::map<std::string, msAnimation> m_mapNameToAnimation;
7474
const msAnimation* m_pCurAnimation;
7575

7676
static void SetBones(const msAnimation* pAnimation,
7777
float fFrame,
78-
vector<myBone_t>& vpBones);
79-
vector<myBone_t> m_vpBones;
78+
std::vector<myBone_t>& vpBones);
79+
std::vector<myBone_t> m_vpBones;
8080

8181
// If any vertex has a bone weight, then then render from m_pTempGeometry.
8282
// Otherwise, render directly from m_pGeometry.
@@ -86,7 +86,7 @@ class Model : public Actor
8686
/* Keep a copy of the mesh data only if m_pTempGeometry is in use. The
8787
* normal and position data will be changed; the rest is static and kept
8888
* only to prevent making a complete copy. */
89-
vector<msMesh> m_vTempMeshes;
89+
std::vector<msMesh> m_vTempMeshes;
9090

9191
void DrawMesh(int i) const;
9292
void AdvanceFrame(float fDeltaTime);

0 commit comments

Comments
 (0)