diff --git a/src/osgPlugins/osg/LineStipple.cpp b/src/osgPlugins/osg/LineStipple.cpp index f03a3cfc5..1286a4e6a 100644 --- a/src/osgPlugins/osg/LineStipple.cpp +++ b/src/osgPlugins/osg/LineStipple.cpp @@ -6,6 +6,7 @@ using namespace osg; using namespace osgDB; +using namespace std; // forward declare functions to use later. bool LineStipple_readLocalData(Object& obj, Input& fr); @@ -53,7 +54,7 @@ bool LineStipple_writeLocalData(const Object& obj,Output& fw) const LineStipple& linestipple = static_cast(obj); fw.indent() << "factor " << linestipple.getFactor() << std::endl; - fw.indent() << "pattern 0x" << std::hex << linestipple.getPattern() << std::dec << std::endl; + fw.indent() << "pattern 0x" << hex << linestipple.getPattern() << dec << std::endl; return true; } diff --git a/src/osgPlugins/osg/Stencil.cpp b/src/osgPlugins/osg/Stencil.cpp index 74e6463ff..8559d55a1 100644 --- a/src/osgPlugins/osg/Stencil.cpp +++ b/src/osgPlugins/osg/Stencil.cpp @@ -6,6 +6,7 @@ using namespace osg; using namespace osgDB; +using namespace std; // forward declare functions to use later. bool Stencil_readLocalData(Object& obj, Input& fr); @@ -106,13 +107,13 @@ bool Stencil_writeLocalData(const Object& obj,Output& fw) fw.indent() << "function " << Stencil_getFuncStr(stencil.getFunction()) << std::endl; fw.indent() << "functionRef " << stencil.getFunctionRef() << std::endl; - fw.indent() << "functionMask 0x" << std::hex << stencil.getFunctionMask() << std::dec << std::endl; + fw.indent() << "functionMask 0x" << hex << stencil.getFunctionMask() << dec << std::endl; fw.indent() << "stencilFailOperation " << Stencil_getOperationStr(stencil.getStencilFailOperation()) << std::endl; fw.indent() << "stencilPassAndDepthFailOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthFailOperation()) << std::endl; fw.indent() << "stencilPassAndDepthPassOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthPassOperation()) << std::endl; - fw.indent() << "writeMask 0x" << std::hex << stencil.getWriteMask() << std::dec << std::endl; + fw.indent() << "writeMask 0x" << hex << stencil.getWriteMask() << dec << std::endl; return true; }