From e7b6fd9b9f5d0feb4412a996990051b7e8abba88 Mon Sep 17 00:00:00 2001 From: mcallieri Date: Thu, 12 Jan 2006 13:12:54 +0000 Subject: [PATCH] in FileWrite, added file closing after finishing --- vcg/math/histogram.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/vcg/math/histogram.h b/vcg/math/histogram.h index 4f3c702e..f84e38a0 100644 --- a/vcg/math/histogram.h +++ b/vcg/math/histogram.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.11 2005/09/16 11:51:23 cignoni +removed signed/unsigned warning + Revision 1.10 2005/06/17 00:54:55 cignoni Corrected small bug in SetRange (H was resized to n instead of n+1) @@ -155,11 +158,13 @@ void Histogram::Add(ScalarType v){ template -void Histogram::FileWrite(const std::string &filename){ -FILE *fp; -fp=fopen(filename.c_str(),"w"); -for(unsigned int i=0;i::FileWrite(const std::string &filename) +{ + FILE *fp; + fp=fopen(filename.c_str(),"w"); + for(unsigned int i=0;i