Просмотр исходного кода

Merge pull request #3709 from lioncash/am

am: Resolve ineffective moves
bunnei 6 лет назад
Родитель
Сommit
e3977243e2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/core/hle/service/am/am.cpp

+ 2 - 2
src/core/hle/service/am/am.cpp

@@ -903,7 +903,7 @@ private:
     void PopOutData(Kernel::HLERequestContext& ctx) {
     void PopOutData(Kernel::HLERequestContext& ctx) {
         LOG_DEBUG(Service_AM, "called");
         LOG_DEBUG(Service_AM, "called");
 
 
-        const auto storage = applet->GetBroker().PopNormalDataToGame();
+        auto storage = applet->GetBroker().PopNormalDataToGame();
         if (storage == nullptr) {
         if (storage == nullptr) {
             LOG_ERROR(Service_AM,
             LOG_ERROR(Service_AM,
                       "storage is a nullptr. There is no data in the current normal channel");
                       "storage is a nullptr. There is no data in the current normal channel");
@@ -934,7 +934,7 @@ private:
     void PopInteractiveOutData(Kernel::HLERequestContext& ctx) {
     void PopInteractiveOutData(Kernel::HLERequestContext& ctx) {
         LOG_DEBUG(Service_AM, "called");
         LOG_DEBUG(Service_AM, "called");
 
 
-        const auto storage = applet->GetBroker().PopInteractiveDataToGame();
+        auto storage = applet->GetBroker().PopInteractiveDataToGame();
         if (storage == nullptr) {
         if (storage == nullptr) {
             LOG_ERROR(Service_AM,
             LOG_ERROR(Service_AM,
                       "storage is a nullptr. There is no data in the current interactive channel");
                       "storage is a nullptr. There is no data in the current interactive channel");