diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /include/modules/cap.h | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'include/modules/cap.h')
| -rw-r--r-- | include/modules/cap.h | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |
