forked from organicmaps/organicmaps
[alohalytics] Renamed ScopedRemoveFile member for easier outside access.
This commit is contained in:
parent
26e6bddf24
commit
45c66f9c64
1 changed files with 3 additions and 3 deletions
|
@ -33,9 +33,9 @@ namespace alohalytics {
|
|||
|
||||
// Useful helper.
|
||||
struct ScopedRemoveFile {
|
||||
std::string file_;
|
||||
ScopedRemoveFile(const std::string & file) : file_(file) {}
|
||||
~ScopedRemoveFile() { std::remove(file_.c_str()); }
|
||||
std::string file;
|
||||
ScopedRemoveFile(const std::string & file_to_delete) : file(file_to_delete) {}
|
||||
~ScopedRemoveFile() { std::remove(file.c_str()); }
|
||||
};
|
||||
|
||||
// Functions are wrapped into the class for convenience.
|
||||
|
|
Loading…
Add table
Reference in a new issue