forked from teamnwah/openmw-tes3coop
Minor -Wall warning fixes, expanded a comment
This commit is contained in:
parent
6b0b7c95f8
commit
19649bfeaa
3 changed files with 9 additions and 3 deletions
|
@ -32,7 +32,7 @@ class Mangle2OgreStream : public Ogre::DataStream
|
|||
|
||||
/// Constructor for a named data stream
|
||||
Mangle2OgreStream(const Ogre::String &name, StreamPtr _inp)
|
||||
: inp(_inp), Ogre::DataStream(name) { init(); }
|
||||
: Ogre::DataStream(name), inp(_inp) { init(); }
|
||||
|
||||
// Only implement the DataStream functions we have to implement
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class BufferStream : public MemoryStream
|
|||
{
|
||||
// We DON'T know how big the stream is. We'll have to read
|
||||
// it in increments.
|
||||
const int ADD = 32*1024;
|
||||
const unsigned int ADD = 32*1024;
|
||||
size_t len=0, newlen;
|
||||
|
||||
while(!input->eof())
|
||||
|
|
|
@ -4,7 +4,13 @@
|
|||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
/// A simple exception that takes and holds a string
|
||||
/** @brief A simple exception that takes and holds a string
|
||||
|
||||
Usage:
|
||||
|
||||
throw str_exception("message");
|
||||
|
||||
*/
|
||||
class str_exception : public std::exception
|
||||
{
|
||||
std::string msg;
|
||||
|
|
Loading…
Reference in a new issue