1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

Add changes requested in code review

This commit is contained in:
filodej 2012-11-27 17:17:29 +01:00 committed by Lu Wang
parent a5ccc7f073
commit db23e31e6a
2 changed files with 16 additions and 7 deletions

View File

@ -1,13 +1,22 @@
/*
* TmpFiles.cc
*
* Collect and clean-up temporary files
*
* implemented by WangLu
* split off by Filodej <philodej@gmail.com>
*/
#include <iostream>
#include "TmpFiles.h"
#include "Param.h"
#include <iostream>
using namespace std;
namespace pdf2htmlEX {
TmpFiles::TmpFiles( Param const& param_ )
TmpFiles::TmpFiles( const Param& param_ )
: param( param_ )
{
}
@ -17,7 +26,7 @@ TmpFiles::~TmpFiles()
clean();
}
void TmpFiles::add(const string & fn)
void TmpFiles::add( const string & fn)
{
if(!param.clean_tmp)
return;

View File

@ -10,16 +10,16 @@ namespace pdf2htmlEX {
class TmpFiles
{
public:
explicit TmpFiles( Param const& param );
virtual ~TmpFiles();
explicit TmpFiles( const Param& param );
~TmpFiles();
void add(std::string const& fn);
void add( const std::string& fn);
private:
void clean();
private:
Param const& param;
const Param& param;
std::set<std::string> tmp_files;
};