Create default output handle on setFileName to avoid modifying const argument.

Fix ref counting errors in TexImage.
Format TODO messages.
This commit is contained in:
castano
2009-10-18 08:09:20 +00:00
parent 78d65e8368
commit c1f9c4df42
5 changed files with 45 additions and 45 deletions

View File

@ -52,7 +52,7 @@ namespace nvtt
//return !stream.isError();
return true;
}
nv::StdOutputStream stream;
};
@ -61,13 +61,12 @@ namespace nvtt
{
nv::Path fileName;
mutable OutputHandler * outputHandler;
OutputHandler * outputHandler;
ErrorHandler * errorHandler;
bool outputHeader;
Container container;
bool openFile() const;
void closeFile() const;
bool hasValidOutputHandler() const;
};