diff options
author | Lioncash <mathew1800@gmail.com> | 2020-11-18 02:06:42 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-11-18 02:06:44 -0500 |
commit | bcaadac22ca8a7320a46644e8199ef333edce8e9 (patch) | |
tree | 968303f713e9efe6b65ac668f057a5f63495134f /src/core/core.cpp | |
parent | abda36636245c416a75774165d2a5b49610952fc (diff) |
core: Make use of [[nodiscard]] with the System class
Given this is a central class, we should flag cases where the return
value of some functions not being used is likely a bug.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 2427960084..e33ed77cd2 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -632,7 +632,11 @@ const std::string& System::GetStatusDetails() const { return impl->status_details; } -Loader::AppLoader& System::GetAppLoader() const { +Loader::AppLoader& System::GetAppLoader() { + return *impl->app_loader; +} + +const Loader::AppLoader& System::GetAppLoader() const { return *impl->app_loader; } |