From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- include/modules/cap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/modules/cap.h') diff --git a/include/modules/cap.h b/include/modules/cap.h index 8ae5df5c7..d5119b10f 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -130,7 +130,7 @@ namespace Cap /** True if the cap is active. Only active caps are registered in the manager. */ - bool active; + bool active = true; /** Reference to the cap manager object */ @@ -172,7 +172,6 @@ namespace Cap */ Capability(Module* mod, const std::string& Name) : ServiceProvider(mod, Name, SERVICE_CUSTOM) - , active(true) , manager(mod, "capmanager") { Unregister(); -- cgit v1.3.1-10-gc9f91