From 1c9bec19993417b1f3b240f2bdb0745aa26c0cb3 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 20 Dec 2011 17:57:56 +0000 Subject: (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) --- src/saveload/saveload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/saveload') diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 7bac45391..0beefbae3 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -278,7 +278,7 @@ struct ReadBuffer { { } - FORCEINLINE byte ReadByte() + inline byte ReadByte() { if (this->bufp == this->bufe) { size_t len = this->reader->Read(this->buf, lengthof(this->buf)); @@ -318,7 +318,7 @@ struct MemoryDumper { * Write a single byte into the dumper. * @param b The byte to write. */ - FORCEINLINE void WriteByte(byte b) + inline void WriteByte(byte b) { /* Are we at the end of this chunk? */ if (this->buf == this->bufe) { -- cgit v1.2.3-70-g09d2