mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 01:28:39 +00:00
Add changes requested in code review
This commit is contained in:
parent
a5ccc7f073
commit
db23e31e6a
|
@ -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 "TmpFiles.h"
|
||||||
#include "Param.h"
|
#include "Param.h"
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace pdf2htmlEX {
|
namespace pdf2htmlEX {
|
||||||
|
|
||||||
|
|
||||||
TmpFiles::TmpFiles( Param const& param_ )
|
TmpFiles::TmpFiles( const Param& param_ )
|
||||||
: param( param_ )
|
: param( param_ )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -17,7 +26,7 @@ TmpFiles::~TmpFiles()
|
||||||
clean();
|
clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TmpFiles::add(const string & fn)
|
void TmpFiles::add( const string & fn)
|
||||||
{
|
{
|
||||||
if(!param.clean_tmp)
|
if(!param.clean_tmp)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -10,16 +10,16 @@ namespace pdf2htmlEX {
|
||||||
class TmpFiles
|
class TmpFiles
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit TmpFiles( Param const& param );
|
explicit TmpFiles( const Param& param );
|
||||||
virtual ~TmpFiles();
|
~TmpFiles();
|
||||||
|
|
||||||
void add(std::string const& fn);
|
void add( const std::string& fn);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clean();
|
void clean();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Param const& param;
|
const Param& param;
|
||||||
std::set<std::string> tmp_files;
|
std::set<std::string> tmp_files;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user