From eb2efd5a3ca3c75a41f29877ced3b7ea8eaf2c68 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 29 Nov 2011 16:43:18 -0800 Subject: [PATCH] Fix some typos. --- AccountState.cpp | 1 - AccountState.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/AccountState.cpp b/AccountState.cpp index 00ae759ecb..7f6da807a1 100644 --- a/AccountState.cpp +++ b/AccountState.cpp @@ -22,4 +22,3 @@ std::vector AccountState::getRaw() const s.add32(mAccountSeq); return s.getData(); } - diff --git a/AccountState.h b/AccountState.h index c321b95267..6aceb7d5aa 100644 --- a/AccountState.h +++ b/AccountState.h @@ -29,8 +29,8 @@ public: uint64 getBalance() const { return mBalance; } uint32 getSeq() const { return mAccountSeq; } - bool charge(uint64 a) { mBalance+=a; } - bool credit(uint64 a) { assert(mBalance>=a); mBalance-=a; } + bool credit(uint64 a) { mBalance+=a; } + bool charge(uint64 a) { assert(mBalance>=a); mBalance-=a; } void incSeq(void) { mAccountSeq++; } void decSeq(void) { assert(mAccountSeq!=0); mAccountSeq--; }