From Mathias Froehlich, build fixes

This commit is contained in:
Robert Osfield
2011-01-24 21:12:25 +00:00
parent 442caf6961
commit abea92ee91
5 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#ifndef OSGDB_ASCIISTREAMOPERATOR
#define OSGDB_ASCIISTREAMOPERATOR
#include <ostream>
#include <osgDB/StreamOperator>
class AsciiOutputIterator : public osgDB::OutputIterator
@@ -69,7 +70,7 @@ public:
virtual void writeGLenum( const osgDB::ObjectGLenum& value )
{
GLenum e = value.get();
GLenum e = value.get();
const std::string& enumString = osgDB::Registry::instance()->getObjectWrapperManager()->getString("GL", e);
indentIfRequired(); *_out << enumString << ' ';
}
@@ -104,7 +105,7 @@ public:
wrappedStr += ch;
}
wrappedStr.insert( 0, 1, '\"' );
wrappedStr.insert( std::string::size_type(0), 1, '\"' );
wrappedStr += '\"';
indentIfRequired();

View File

@@ -161,7 +161,7 @@ public:
else if ( ch=='\\' ) realStr += '\\';
realStr += ch;
}
realStr.insert( 0, 1, '\"' );
realStr.insert( std::string::size_type(0), 1, '\"' );
realStr += '\"';
addToCurrentNode( realStr );
}