summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
commit11da45ee55957c243854cd78705d81543541c061 (patch)
tree29e703244d28f29c8634b2d30f42b34852fe74bc /src/saveload
parentc3839648f75ebfdca2f7d95b7d6a2b29445ab1c2 (diff)
downloadopenttd-11da45ee55957c243854cd78705d81543541c061.tar.xz
(svn r14949) -Cleanup: pointer coding style
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
-rw-r--r--src/saveload/oldloader.cpp2
-rw-r--r--src/saveload/saveload.cpp8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index c4ecb664a..4aa4a2eee 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -730,7 +730,7 @@ bool AfterLoadGame()
}
if (CheckSavegameVersion(42)) {
- Vehicle* v;
+ Vehicle *v;
for (TileIndex t = 0; t < map_size; t++) {
if (MayHaveBridgeAbove(t)) ClearBridgeMiddle(t);
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp
index 532d58f8c..9e503077b 100644
--- a/src/saveload/oldloader.cpp
+++ b/src/saveload/oldloader.cpp
@@ -331,7 +331,7 @@ static StringID *_old_vehicle_names = NULL;
static void FixOldVehicles()
{
- Vehicle* v;
+ Vehicle *v;
FOR_ALL_VEHICLES(v) {
v->name = CopyFromOldName(_old_vehicle_names[v->index]);
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index a2bc2e324..904c7ea44 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -68,7 +68,7 @@ static struct {
WriterProc *write_bytes; ///< savegame writer function
ReaderProc *read_bytes; ///< savegame loader function
- const ChunkHandler* const *chs; ///< the chunk of data that is being processed atm (vehicles, signs, etc.)
+ const ChunkHandler * const *chs; ///< the chunk of data that is being processed atm (vehicles, signs, etc.)
/* When saving/loading savegames, they are always saved to a temporary memory-place
* to be flushed to file (save) or to final place (load) when full. */
@@ -696,8 +696,8 @@ void SlArray(void *array, size_t length, VarType conv)
}
-static uint ReferenceToInt(const void* obj, SLRefType rt);
-static void* IntToReference(uint index, SLRefType rt);
+static uint ReferenceToInt(const void *obj, SLRefType rt);
+static void *IntToReference(uint index, SLRefType rt);
/**
@@ -1014,7 +1014,7 @@ static void SlSaveChunk(const ChunkHandler *ch)
static void SlSaveChunks()
{
const ChunkHandler *ch;
- const ChunkHandler* const *chsc;
+ const ChunkHandler * const *chsc;
uint p;
for (p = 0; p != CH_NUM_PRI_LEVELS; p++) {