mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-27 16:19:34 +00:00
file write clarifications
handle clang complaints about hidden virtuals in the context of file writes that have thier own routes and I/O needs.
This commit is contained in:
parent
3fbd3119a6
commit
5c701fe09e
5 changed files with 17 additions and 11 deletions
|
|
@ -36,7 +36,7 @@ class FileObject : public SimObject
|
|||
U8 *mFileBuffer;
|
||||
U32 mBufferSize;
|
||||
U32 mCurPos;
|
||||
FileStream *stream;
|
||||
FileStream *mStream;
|
||||
public:
|
||||
FileObject();
|
||||
~FileObject();
|
||||
|
|
@ -50,6 +50,8 @@ public:
|
|||
bool isEOF();
|
||||
void writeLine(const U8 *line);
|
||||
void close();
|
||||
|
||||
bool writeObject(Stream* stream) override { Con::errorf("FileObject:Can Not write a file interface object to a file"); return false; }; //Don't allow writing FileObject *to* files
|
||||
void writeObject( SimObject* object, const U8* objectPrepend = NULL );
|
||||
|
||||
DECLARE_CONOBJECT(FileObject);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue