Minor -Wall warning fixes, expanded a comment

actorid
Nicolay Korslund 15 years ago
parent 6b0b7c95f8
commit 19649bfeaa

@ -32,7 +32,7 @@ class Mangle2OgreStream : public Ogre::DataStream
/// Constructor for a named data stream /// Constructor for a named data stream
Mangle2OgreStream(const Ogre::String &name, StreamPtr _inp) 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 // 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 // We DON'T know how big the stream is. We'll have to read
// it in increments. // it in increments.
const int ADD = 32*1024; const unsigned int ADD = 32*1024;
size_t len=0, newlen; size_t len=0, newlen;
while(!input->eof()) while(!input->eof())

@ -4,7 +4,13 @@
#include <exception> #include <exception>
#include <string> #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 class str_exception : public std::exception
{ {
std::string msg; std::string msg;

Loading…
Cancel
Save