mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
Disallow accidental copy construction
This commit is contained in:
parent
37db080644
commit
9400cb36b7
|
@ -81,6 +81,8 @@ struct Activity
|
||||||
|
|
||||||
Activity(Logger & logger, ActivityType type, const std::string & s = "");
|
Activity(Logger & logger, ActivityType type, const std::string & s = "");
|
||||||
|
|
||||||
|
Activity(const Activity & act) = delete;
|
||||||
|
|
||||||
~Activity()
|
~Activity()
|
||||||
{ logger.stopActivity(id); }
|
{ logger.stopActivity(id); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue