From 71187a2c56f4cbc1fbd862aa04b8429caf554fa4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 Jun 2008 13:07:40 +0000 Subject: [PATCH] From Mario Valle, fixed warnings --- src/osgPlugins/txp/trpage_print.cpp | 10 +++++----- src/osgPlugins/txp/trpage_print.h | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/osgPlugins/txp/trpage_print.cpp b/src/osgPlugins/txp/trpage_print.cpp index e5eca89a7..07fe6471c 100644 --- a/src/osgPlugins/txp/trpage_print.cpp +++ b/src/osgPlugins/txp/trpage_print.cpp @@ -91,7 +91,7 @@ trpgFilePrintBuffer::~trpgFilePrintBuffer() // Print out a line of text -bool trpgFilePrintBuffer::prnLine(char *str) +bool trpgFilePrintBuffer::prnLine(const char *str) { if (!fp) return false; @@ -655,7 +655,7 @@ bool trpgTransform::Print(trpgPrintBuffer &buf) const buf.prnLine(ls); } sprintf(ls,"name = %s", name ? name : "noname" ); buf.prnLine(ls); - + buf.DecreaseIndent(2); buf.prnLine(); @@ -677,7 +677,7 @@ bool trpgModelRef::Print(trpgPrintBuffer &buf) const sprintf(ls,"%f %f %f %f",m[i][0],m[i][1],m[i][2],m[i][3]); buf.prnLine(ls); } - + buf.DecreaseIndent(2); buf.prnLine(); @@ -864,7 +864,7 @@ bool trpgLightTable::Print(trpgPrintBuffer &buf) const buf.DecreaseIndent(); buf.prnLine(); - + return true; } @@ -948,7 +948,7 @@ bool trpgLabel::Print(trpgPrintBuffer &buf) const buf.IncreaseIndent(); for (unsigned int i=0;i