From ccbc1df85beb67eb61f7b6ac339deef869465861 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 15 Aug 2002 14:09:36 +0000 Subject: [PATCH] Added a using namespace std; and removed std:: from from std::hex and std::dec. --- src/osgPlugins/osg/StateSet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/osg/StateSet.cpp b/src/osgPlugins/osg/StateSet.cpp index e9798c4a2..14b79e020 100644 --- a/src/osgPlugins/osg/StateSet.cpp +++ b/src/osgPlugins/osg/StateSet.cpp @@ -8,6 +8,7 @@ using namespace osg; using namespace osgDB; +using namespace std; // forward declare functions to use later. bool GeoState_readLocalData(Object& obj, Input& fr); @@ -522,7 +523,7 @@ bool StateSet_writeLocalData(const Object& obj, Output& fw) else { // no name defined for GLMode so just pass its value to fw. - fw.indent() << "0x" << std::hex << (osg::uint)mitr->first << std::dec <<" " << StateSet_getModeStr(mitr->second) << std::endl; + fw.indent() << "0x" << hex << (osg::uint)mitr->first << dec <<" " << StateSet_getModeStr(mitr->second) << std::endl; } } @@ -556,7 +557,7 @@ bool StateSet_writeLocalData(const Object& obj, Output& fw) else { // no name defined for GLMode so just pass its value to fw. - fw.indent() << "0x" << std::hex << (osg::uint)mitr->first << std::dec <<" " << StateSet_getModeStr(mitr->second) << std::endl; + fw.indent() << "0x" << hex << (osg::uint)mitr->first << dec <<" " << StateSet_getModeStr(mitr->second) << std::endl; } } }