Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Commit

Permalink
compiler namespace fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Carroll committed May 16, 2011
1 parent ff3eefb commit 4faf56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hand/Message.h
Expand Up @@ -31,7 +31,7 @@ namespace XbmcIpc
}

public:
Message(void* _buffer, size_t bufferSize) : buffer((byte*)_buffer), mcapacity(bufferSize), owner(false) { clear(); }
Message(void* buffer_, size_t bufferSize) : buffer((byte*)buffer_), mcapacity(bufferSize), owner(false) { clear(); }
Message(size_t bufferSize) : buffer(new byte[bufferSize]), mcapacity(bufferSize), owner(true) { clear(); }
~Message() { if (owner) delete [] buffer; }

Expand All @@ -48,7 +48,7 @@ namespace XbmcIpc
size_t capacity() const { return mcapacity; }
size_t position() const { return mposition; }

#define DEFAULTMESSAGERELATIVERW(name,type) \
#define DEFAULTMESSAGERELATIVERW(name,type) \
inline Message& put##name(const type & val) throw(MessageException) { return put(&val, sizeof(type)); } \
inline type get##name() throw(MessageException) { type ret; get(&ret, sizeof(type)); return ret; }

Expand Down

0 comments on commit 4faf56f

Please sign in to comment.