mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Change the order of the arguments to the ctor, allowing us to make the boolean default to true
llvm-svn: 11592
This commit is contained in:
parent
012ad71080
commit
217adea39e
@ -137,11 +137,11 @@ public:
|
||||
/// specified (if deleteIt is true).
|
||||
///
|
||||
class FileRemover {
|
||||
bool DeleteIt;
|
||||
std::string Filename;
|
||||
bool DeleteIt;
|
||||
public:
|
||||
FileRemover(bool deleteIt, const std::string &filename)
|
||||
: DeleteIt(deleteIt), Filename(filename) {}
|
||||
FileRemover(const std::string &filename, bool deleteIt = true)
|
||||
: Filename(filename), DeleteIt(deleteIt) {}
|
||||
|
||||
~FileRemover() {
|
||||
if (DeleteIt) removeFile(Filename);
|
||||
|
Loading…
Reference in New Issue
Block a user