aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/outputpersistenceblock.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-02 12:14:04 +0000
committerEugene Sandulenko2010-10-12 23:30:00 +0000
commit086f5961b6575c50bb386750b6e9a3ed1efdd8cd (patch)
tree75c532790d67ccd3b8fdc5c371a3ce3bf0705dca /engines/sword25/kernel/outputpersistenceblock.cpp
parent0cdb2ded85d17150cb108a5d63dd8957c29af2a5 (diff)
downloadscummvm-rg350-086f5961b6575c50bb386750b6e9a3ed1efdd8cd.tar.gz
scummvm-rg350-086f5961b6575c50bb386750b6e9a3ed1efdd8cd.tar.bz2
scummvm-rg350-086f5961b6575c50bb386750b6e9a3ed1efdd8cd.zip
SWORD25: unsigned int -> uint
svn-id: r53309
Diffstat (limited to 'engines/sword25/kernel/outputpersistenceblock.cpp')
-rw-r--r--engines/sword25/kernel/outputpersistenceblock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/kernel/outputpersistenceblock.cpp b/engines/sword25/kernel/outputpersistenceblock.cpp
index 9965fdb9d5..0394aa1808 100644
--- a/engines/sword25/kernel/outputpersistenceblock.cpp
+++ b/engines/sword25/kernel/outputpersistenceblock.cpp
@@ -45,7 +45,7 @@
// -----------------------------------------------------------------------------
namespace {
-const unsigned int INITIAL_BUFFER_SIZE = 1024 * 64;
+const uint INITIAL_BUFFER_SIZE = 1024 * 64;
}
namespace Sword25 {
@@ -70,7 +70,7 @@ void OutputPersistenceBlock::Write(signed int Value) {
// -----------------------------------------------------------------------------
-void OutputPersistenceBlock::Write(unsigned int Value) {
+void OutputPersistenceBlock::Write(uint Value) {
WriteMarker(UINT_MARKER);
Value = ConvertEndianessFromSystemToStorage(Value);
RawWrite(&Value, sizeof(Value));
@@ -89,7 +89,7 @@ void OutputPersistenceBlock::Write(float Value) {
void OutputPersistenceBlock::Write(bool Value) {
WriteMarker(BOOL_MARKER);
- unsigned int UIntBool = Value ? 1 : 0;
+ uint UIntBool = Value ? 1 : 0;
UIntBool = ConvertEndianessFromSystemToStorage(UIntBool);
RawWrite(&UIntBool, sizeof(UIntBool));
}
@@ -122,7 +122,7 @@ void OutputPersistenceBlock::WriteMarker(byte Marker) {
void OutputPersistenceBlock::RawWrite(const void *DataPtr, size_t Size) {
if (Size > 0) {
- unsigned int OldSize = m_Data.size();
+ uint OldSize = m_Data.size();
m_Data.resize(OldSize + Size);
memcpy(&m_Data[OldSize], DataPtr, Size);
}