Skip to content

Commit 94fa5cf

Browse files
rm5248OmniBlade
authored andcommitted
Replace windows _strdup with strdup
1 parent 05725eb commit 94fa5cf

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Code/Tools/LevelEdit/TransitionEditDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ TransitionEditDialogClass::Fill_Animation_List (void)
922922
//
923923
int cb_index = m_AnimationList.AddString (animation_name);
924924
if (cb_index != CB_ERR) {
925-
m_AnimationList.SetItemData (cb_index, (DWORD_PTR)::_strdup ((LPCTSTR)filename));
925+
m_AnimationList.SetItemData (cb_index, (DWORD_PTR)::strdup ((LPCTSTR)filename));
926926

927927
//
928928
// Should we select this animation by default?

Code/ww3d2/agg_def.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ AggregateDefClass::Read_Header (ChunkLoadClass &chunk_load)
596596
if (chunk_load.Read (&header, sizeof (header)) == sizeof (header)) {
597597

598598
// Copy the name from the header structure
599-
m_pName = ::_strdup (header.Name);
599+
m_pName = ::strdup (header.Name);
600600
m_Version = header.Version;
601601

602602
// Success!

Code/ww3d2/agg_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class AggregateDefClass
110110
virtual WW3DErrorType Load_W3D (ChunkLoadClass &chunk_load);
111111
virtual WW3DErrorType Save_W3D (ChunkSaveClass &chunk_save);
112112
const char * Get_Name (void) const { return m_pName; }
113-
void Set_Name (const char *pname) { SAFE_FREE (m_pName); m_pName = ::_strdup (pname); }
113+
void Set_Name (const char *pname) { SAFE_FREE (m_pName); m_pName = ::strdup (pname); }
114114
RenderObjClass * Create (void);
115115
AggregateDefClass * Clone (void) const { return new AggregateDefClass (*this); }
116116

Code/ww3d2/part_emt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ ParticleEmitterClass::ParticleEmitterClass(float emit_rate, unsigned int burst_s
117117
SET_REF_OWNER( Buffer );
118118
BufferSceneNeeded = true;
119119

120-
NameString = ::_strdup ("ParticleEmitter");
120+
NameString = ::strdup ("ParticleEmitter");
121121
}
122122

123123

0 commit comments

Comments
 (0)