projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3b6e8
)
Remove another fstream.
author
Carl Hetherington
<cth@carlh.net>
Mon, 25 Nov 2013 00:45:34 +0000
(
00:45
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 25 Nov 2013 00:45:34 +0000
(
00:45
+0000)
src/lib/log.cc
patch
|
blob
|
history
diff --git
a/src/lib/log.cc
b/src/lib/log.cc
index 86de21bddf8f586ab00c21005ace6c079ac4f977..9ddf460d43ccc1c382270e607a7634a66be09049 100644
(file)
--- a/
src/lib/log.cc
+++ b/
src/lib/log.cc
@@
-21,9
+21,10
@@
* @brief A very simple logging class.
*/
-#include <fstream>
#include <time.h>
+#include <cstdio>
#include "log.h"
+#include "cross.h"
#include "i18n.h"
@@
-102,7
+103,8
@@
FileLog::FileLog (boost::filesystem::path file)
void
FileLog::do_log (string m)
{
- ofstream f (_file.string().c_str(), fstream::app);
- f << m << N_("\n");
+ FILE* f = fopen_boost (_file, "a");
+ fprintf (f, "%s\n", m.c_str ());
+ fclose (f);
}