mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Change the order of the arguments to the ctor, allowing us to make the boolean default to true
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,11 +137,11 @@ public:
|
|||||||
/// specified (if deleteIt is true).
|
/// specified (if deleteIt is true).
|
||||||
///
|
///
|
||||||
class FileRemover {
|
class FileRemover {
|
||||||
bool DeleteIt;
|
|
||||||
std::string Filename;
|
std::string Filename;
|
||||||
|
bool DeleteIt;
|
||||||
public:
|
public:
|
||||||
FileRemover(bool deleteIt, const std::string &filename)
|
FileRemover(const std::string &filename, bool deleteIt = true)
|
||||||
: DeleteIt(deleteIt), Filename(filename) {}
|
: Filename(filename), DeleteIt(deleteIt) {}
|
||||||
|
|
||||||
~FileRemover() {
|
~FileRemover() {
|
||||||
if (DeleteIt) removeFile(Filename);
|
if (DeleteIt) removeFile(Filename);
|
||||||
|
|||||||
@@ -137,11 +137,11 @@ public:
|
|||||||
/// specified (if deleteIt is true).
|
/// specified (if deleteIt is true).
|
||||||
///
|
///
|
||||||
class FileRemover {
|
class FileRemover {
|
||||||
bool DeleteIt;
|
|
||||||
std::string Filename;
|
std::string Filename;
|
||||||
|
bool DeleteIt;
|
||||||
public:
|
public:
|
||||||
FileRemover(bool deleteIt, const std::string &filename)
|
FileRemover(const std::string &filename, bool deleteIt = true)
|
||||||
: DeleteIt(deleteIt), Filename(filename) {}
|
: Filename(filename), DeleteIt(deleteIt) {}
|
||||||
|
|
||||||
~FileRemover() {
|
~FileRemover() {
|
||||||
if (DeleteIt) removeFile(Filename);
|
if (DeleteIt) removeFile(Filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user