From 6629efc676ca48e958dcfa0ee4e66e6aba1c6597 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 19 Oct 2010 21:03:33 +0000 Subject: SWORD25: Enforced code formatting rules in rest of the engine svn-id: r53626 --- engines/sword25/kernel/outputpersistenceblock.h | 34 ++++++++++--------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'engines/sword25/kernel/outputpersistenceblock.h') diff --git a/engines/sword25/kernel/outputpersistenceblock.h b/engines/sword25/kernel/outputpersistenceblock.h index 154dbc9763..3ece0175af 100644 --- a/engines/sword25/kernel/outputpersistenceblock.h +++ b/engines/sword25/kernel/outputpersistenceblock.h @@ -35,42 +35,34 @@ #ifndef SWORD25_OUTPUTPERSISTENCEBLOCK_H #define SWORD25_OUTPUTPERSISTENCEBLOCK_H -// ----------------------------------------------------------------------------- -// Includes -// ----------------------------------------------------------------------------- - #include "sword25/kernel/common.h" #include "sword25/kernel/persistenceblock.h" namespace Sword25 { -// ----------------------------------------------------------------------------- -// Class declaration -// ----------------------------------------------------------------------------- - class OutputPersistenceBlock : public PersistenceBlock { public: OutputPersistenceBlock(); - void write(signed int Value); - void write(uint Value); - void write(float Value); - void write(bool Value); - void write(const Common::String &String); - void write(const void *BufferPtr, size_t Size); + void write(signed int value); + void write(uint value); + void write(float value); + void write(bool value); + void write(const Common::String &string); + void write(const void *bufferPtr, size_t size); - const void *GetData() const { - return &m_Data[0]; + const void *getData() const { + return &_data[0]; } - uint GetDataSize() const { - return m_Data.size(); + uint getDataSize() const { + return _data.size(); } private: - void WriteMarker(byte Marker); - void RawWrite(const void *DataPtr, size_t Size); + void writeMarker(byte marker); + void rawWrite(const void *dataPtr, size_t size); - Common::Array m_Data; + Common::Array _data; }; } // End of namespace Sword25 -- cgit v1.2.3