diff options
| author | 2020-11-18 02:06:42 -0500 | |
|---|---|---|
| committer | 2020-11-18 02:06:44 -0500 | |
| commit | bcaadac22ca8a7320a46644e8199ef333edce8e9 (patch) | |
| tree | 968303f713e9efe6b65ac668f057a5f63495134f /src/core/core.cpp | |
| parent | Merge pull request #4866 from Morph1984/mjolnir-p3-prod (diff) | |
| download | yuzu-bcaadac22ca8a7320a46644e8199ef333edce8e9.tar.gz yuzu-bcaadac22ca8a7320a46644e8199ef333edce8e9.tar.xz yuzu-bcaadac22ca8a7320a46644e8199ef333edce8e9.zip | |
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 242796008..e33ed77cd 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -632,7 +632,11 @@ const std::string& System::GetStatusDetails() const { | |||
| 632 | return impl->status_details; | 632 | return impl->status_details; |
| 633 | } | 633 | } |
| 634 | 634 | ||
| 635 | Loader::AppLoader& System::GetAppLoader() const { | 635 | Loader::AppLoader& System::GetAppLoader() { |
| 636 | return *impl->app_loader; | ||
| 637 | } | ||
| 638 | |||
| 639 | const Loader::AppLoader& System::GetAppLoader() const { | ||
| 636 | return *impl->app_loader; | 640 | return *impl->app_loader; |
| 637 | } | 641 | } |
| 638 | 642 | ||