[alohalytics] Renamed ScopedRemoveFile member for easier outside access.

This commit is contained in:
Alex Zolotarev 2015-06-22 17:00:17 +00:00
parent 26e6bddf24
commit 45c66f9c64

View file

@ -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.