diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-08-06 22:35:24 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-08-06 22:35:24 +0400 |
commit | cba50df899809ede5e2d85b63bfc461ed2bae83c (patch) | |
tree | 47a401379671bc113843ef133604a8e322de587e /util/file.hh | |
parent | b52ed110b02dff440512ee241211f7f0238e82d1 (diff) |
Maybe if I make TempMaker provide the file name, people will stop using tmpnam.
Diffstat (limited to 'util/file.hh')
-rw-r--r-- | util/file.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/file.hh b/util/file.hh index 72c8ea768..cc986270c 100644 --- a/util/file.hh +++ b/util/file.hh @@ -94,9 +94,9 @@ class TempMaker { public: explicit TempMaker(const std::string &prefix); - int Make() const; + int Make(std::string *out_name = NULL) const; - std::FILE *MakeFile() const; + std::FILE *MakeFile(std::string *out_name = NULL) const; private: std::string base_; |