Skip to content

Commit 188f360

Browse files
authored
Merge pull request #8 from OutpostUniverse/addPragmaOnce
Add pragma once
2 parents 093013b + 87db7a9 commit 188f360

33 files changed

Lines changed: 18 additions & 75 deletions

CClmReader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include "stdafx.h"
32
#include "CClmReader.h"
43
#include "CMemoryStreamReader.h"
@@ -41,7 +40,6 @@ HRESULT __stdcall CClmReader::QueryInterface(REFIID riid, void** ppv)
4140
}
4241

4342

44-
4543
// ArchiveReader
4644
// *************
4745

@@ -142,8 +140,6 @@ HRESULT CClmReader::OpenStreamRead(BSTR fileName, StreamReader **stream)
142140
}
143141

144142

145-
146-
147143
// Class specific
148144
// **************
149145

CClmReader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12

23
#include "OP2Editor.h"
34

CClmWriter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include "stdafx.h"
32
#include "CClmWriter.h"
43

@@ -39,7 +38,6 @@ HRESULT __stdcall CClmWriter::QueryInterface(REFIID riid, void** ppv)
3938
}
4039

4140

42-
4341
// ArchiveWriter
4442
// *************
4543

CClmWriter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12

23
#include "OP2Editor.h"
34

CFileStreamReader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include "stdafx.h"
32
#include "CFileStreamReader.h"
43

@@ -41,7 +40,6 @@ HRESULT __stdcall CFileStreamReader::QueryInterface(REFIID riid, void** ppv)
4140
}
4241

4342

44-
4543
// StreamReader
4644
// ************
4745

@@ -106,8 +104,6 @@ HRESULT CFileStreamReader::Seek(int offset)
106104
}
107105

108106

109-
110-
111107
// Class specific
112108
// **************
113109

CFileStreamReader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12

23
#include "OP2Editor.h"
34

CFileStreamWriter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include "stdafx.h"
32
#include "CFileStreamWriter.h"
43

@@ -39,8 +38,6 @@ HRESULT __stdcall CFileStreamWriter::QueryInterface(REFIID riid, void** ppv)
3938
}
4039

4140

42-
43-
4441
CFileStreamWriter::CFileStreamWriter(BSTR fileName) : m_cRef(1)
4542
{
4643
// Initialize class variables

CFileStreamWriter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12

23
#include "OP2Editor.h"
34

CMapFile.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
#include "stdafx.h"
42
#include "CMapFile.h"
53
#include "GlobalFunctions.h"
@@ -166,7 +164,6 @@ HRESULT CMapFile::Draw(int destDC, int sourcePixelX, int sourcePixelY, int pixel
166164
}
167165

168166

169-
170167
// MapFile functions
171168
// *****************
172169

@@ -179,7 +176,6 @@ HRESULT CMapFile::get_AroundTheWorld(int *bAroundTheWorld)
179176
}
180177

181178

182-
183179
HRESULT CMapFile::get_TileData(
184180
/* [in] */ int tileX,
185181
/* [in] */ int tileY,
@@ -1118,9 +1114,6 @@ HRESULT CMapFile::SaveMap(StreamWriter *stream, enum MapLoadSaveFormat saveFlags
11181114
}
11191115

11201116

1121-
1122-
1123-
11241117
// ISupportErrorInfo
11251118
// *****************
11261119

@@ -1133,11 +1126,9 @@ HRESULT CMapFile::InterfaceSupportsErrorInfo(REFIID riid)
11331126
}
11341127

11351128

1136-
11371129
// Constructors/Destructor
11381130
// ***********************
11391131

1140-
11411132
CMapFile::CMapFile(TileSetSource *tileSetSource, int width, int height) :
11421133
m_cRef(1)
11431134
{

CMapFile.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#pragma once
12

23
#include "OP2Editor.h"
34
#include "CTileGroup.h"
4-
//#include "CTileSetManager.h"
5+
#include "CTileSetManager.h"
56

67

78
class CMapFile : public MapFile, public ISupportErrorInfo

0 commit comments

Comments
 (0)