tweaks according to the comments of kimkulling

pull/327/head
Gargaj 2014-08-07 11:30:44 +02:00
parent c3977bd132
commit 5886154247
1 changed files with 4 additions and 4 deletions

View File

@ -96,6 +96,7 @@ inline size_t Write<unsigned int>(IOStream * stream, const unsigned int& w)
template <> template <>
inline size_t Write<uint16_t>(IOStream * stream, const uint16_t& w) inline size_t Write<uint16_t>(IOStream * stream, const uint16_t& w)
{ {
BOOST_STATIC_ASSERT(sizeof(uint16_t)==2);
stream->Write(&w,2,1); stream->Write(&w,2,1);
return 2; return 2;
} }
@ -245,7 +246,7 @@ inline size_t WriteBounds(IOStream * stream, const T* in, unsigned int size)
public: public:
AssbinChunkWriter( IOStream * container, uint32_t magic, size_t initial = 4096) AssbinChunkWriter( IOStream * container, uint32_t magic, size_t initial = 4096)
: initial(initial), buffer(NULL), cur_size(0), cursor(0), container(container), magic(magic) : buffer(NULL), magic(magic), container(container), cur_size(0), cursor(0), initial(initial)
{ {
} }
@ -664,9 +665,8 @@ inline size_t WriteBounds(IOStream * stream, const T* in, unsigned int size)
public: public:
AssbinExport() AssbinExport()
: shortened(false), compressed(false) // temporary settings until properties are introduced for exporters
{ {
shortened = false;
compressed = false;
} }
// ----------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------