cmMakefile: Prevent copying RAII helpers
Delete copy and assignment operators for public scope helpers in cmMakefile, as use thereof (at least without careful use of move constructors, which we don't have) would result in bugs. This helps guard against improper use, and is consistent with the internal helpers having these deleted.
This commit is contained in:
parent
d625c54141
commit
de5700a15a
@ -1054,6 +1054,9 @@ public:
|
||||
public:
|
||||
FindPackageStackRAII(cmMakefile* mf, std::string const& pkg);
|
||||
~FindPackageStackRAII();
|
||||
|
||||
FindPackageStackRAII(FindPackageStackRAII const&) = delete;
|
||||
FindPackageStackRAII& operator=(FindPackageStackRAII const&) = delete;
|
||||
};
|
||||
|
||||
class DebugFindPkgRAII
|
||||
@ -1064,6 +1067,9 @@ public:
|
||||
public:
|
||||
DebugFindPkgRAII(cmMakefile* mf, std::string const& pkg);
|
||||
~DebugFindPkgRAII();
|
||||
|
||||
DebugFindPkgRAII(DebugFindPkgRAII const&) = delete;
|
||||
DebugFindPkgRAII& operator=(DebugFindPkgRAII const&) = delete;
|
||||
};
|
||||
|
||||
bool GetDebugFindPkgMode() const;
|
||||
|
Loading…
Reference in New Issue
Block a user