mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
clean code
This commit is contained in:
parent
ba77c1cc6c
commit
9d99fd9b82
@ -7,7 +7,7 @@ using std::string;
|
||||
|
||||
namespace pdf2htmlEX {
|
||||
|
||||
void create_directories(string path)
|
||||
void create_directories(const string & path)
|
||||
{
|
||||
if(path.empty()) return;
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
namespace pdf2htmlEX {
|
||||
|
||||
void create_directories(std::string path);
|
||||
void create_directories(const std::string & path);
|
||||
|
||||
bool is_truetype_suffix(const std::string & suffix);
|
||||
|
||||
|
@ -17,8 +17,9 @@ public:
|
||||
{
|
||||
public:
|
||||
guarded_pointer(string_formatter * sf) : sf(sf) { ++(sf->buf_cnt); }
|
||||
guarded_pointer(const guarded_pointer & gp) : sf(gp.sf) { ++(sf->buf_cnt); }
|
||||
~guarded_pointer(void) { --(sf->buf_cnt); }
|
||||
operator char* () { return &(sf->buf.front()); }
|
||||
operator char* () const { return &(sf->buf.front()); }
|
||||
private:
|
||||
string_formatter * sf;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user