summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 21:31:00 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 21:31:00 +0000
commit5049e938f5e78726352217ab7b6eba2465f030a1 (patch)
treef14981bb5bab743fc9843ca5d1a0f8e43c2b87c1 /src
parent2f51639af8285dec2acb5a606ec4b6976acb6b3c (diff)
downloadopenttd-5049e938f5e78726352217ab7b6eba2465f030a1.tar.xz
(svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp4
-rw-r--r--src/newgrf_house.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 851090c07..d2bfe0396 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -721,7 +721,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
assert(tar_filename == NULL);
/* The TAR-header, repeated for every file */
- typedef struct TarHeader {
+ struct TarHeader {
char name[100]; ///< Name of the file
char mode[8];
char uid[8];
@@ -740,7 +740,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
char prefix[155]; ///< Path of the file
char unused[12];
- } TarHeader;
+ };
/* Check if we already seen this file */
TarList::iterator it = _tar_list[this->subdir].find(filename);
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index e54a97685..9a7ff4444 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -199,10 +199,10 @@ static uint32 GetNearbyTileInformation(byte parameter, TileIndex tile, bool grf_
}
/** Structure with user-data for SearchNearbyHouseXXX - functions */
-typedef struct {
+struct SearchNearbyHouseData {
const HouseSpec *hs; ///< Specs of the house that started the search.
TileIndex north_tile; ///< Northern tile of the house.
-} SearchNearbyHouseData;
+};
/**
* Callback function to search a house by its HouseID