From Mario Valle, fixed warnings
This commit is contained in:
@@ -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<supports.size();i++)
|
||||
{
|
||||
sprintf(ls,"%f %f %f",supports[i].x,supports[i].y,supports[i].z); buf.prnLine(ls);
|
||||
sprintf(ls,"%f %f %f",supports[i].x,supports[i].y,supports[i].z); buf.prnLine(ls);
|
||||
}
|
||||
buf.DecreaseIndent();
|
||||
buf.prnLine();
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
virtual bool isValid(void) { return true; }
|
||||
|
||||
// The main print function. Subclasses must fill this in.
|
||||
virtual bool prnLine(char *str=NULL)=0;
|
||||
virtual bool prnLine(const char *str=NULL)=0;
|
||||
|
||||
// This increases the current indentation by the amount given (defaults to one)
|
||||
virtual void IncreaseIndent(int amount=1);
|
||||
@@ -61,7 +61,7 @@ TX_EXDECL class TX_CLDECL trpgFilePrintBuffer : public trpgPrintBuffer {
|
||||
bool isValid(void) { return valid; };
|
||||
|
||||
// For a file printer buffer, this writes a string out to a file
|
||||
bool prnLine(char *str = NULL);
|
||||
bool prnLine(const char *str = NULL);
|
||||
protected:
|
||||
bool valid;
|
||||
bool isMine;
|
||||
@@ -119,7 +119,7 @@ TX_EXDECL class TX_CLDECL trpgPrintGraphParser : public trpgSceneParser
|
||||
trpgPrintGraphParser *parse;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
ChildRefList childRefList;
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ TX_EXDECL class TX_CLDECL trpgPrintGraphParser : public trpgSceneParser
|
||||
// Fetch the archive associated with this print
|
||||
trpgr_Archive *GetArchive() {return archive; };
|
||||
trpgrImageHelper *GetImageHelp() {return imageHelp; };
|
||||
|
||||
|
||||
protected:
|
||||
bool StartChildren(void *);
|
||||
bool EndChildren(void *);
|
||||
@@ -136,9 +136,9 @@ TX_EXDECL class TX_CLDECL trpgPrintGraphParser : public trpgSceneParser
|
||||
trpgPrintBuffer *printBuf;
|
||||
trpgr_Archive *archive;
|
||||
trpgrImageHelper *imageHelp;
|
||||
|
||||
|
||||
ReadHelper *childRefCB;
|
||||
|
||||
|
||||
};
|
||||
|
||||
// Print utitility for while archive
|
||||
|
||||
Reference in New Issue
Block a user