From 5049e938f5e78726352217ab7b6eba2465f030a1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Nov 2013 21:31:00 +0000 Subject: (svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs --- src/fileio.cpp | 4 ++-- src/newgrf_house.cpp | 4 ++-- 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 -- cgit v1.2.3-70-g09d2