From 31af63adf426c952f8882fe22b0a0d7bbcb473d8 Mon Sep 17 00:00:00 2001 From: Sacha Date: Fri, 6 Dec 2013 01:04:50 +1000 Subject: [PATCH] Buildfix: Another string::back() and including a .cpp? --- Core/Util/GameManager.h | 2 ++ UI/InstallZipScreen.cpp | 2 +- UI/Store.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/Util/GameManager.h b/Core/Util/GameManager.h index a1f0d67a70..bf9cafdd66 100644 --- a/Core/Util/GameManager.h +++ b/Core/Util/GameManager.h @@ -20,6 +20,8 @@ // // Not concerned with full ISOs. +#pragma once + #include "net/http_client.h" class GameManager { diff --git a/UI/InstallZipScreen.cpp b/UI/InstallZipScreen.cpp index dacde8580d..4589189348 100644 --- a/UI/InstallZipScreen.cpp +++ b/UI/InstallZipScreen.cpp @@ -23,7 +23,7 @@ #include "UI/ui_atlas.h" #include "file/file_util.h" -#include "Core/Util/GameManager.cpp" +#include "Core/Util/GameManager.h" #include "UI/InstallZipScreen.h" void InstallZipScreen::CreateViews() { diff --git a/UI/Store.cpp b/UI/Store.cpp index e2f2b4a60a..57148707d5 100644 --- a/UI/Store.cpp +++ b/UI/Store.cpp @@ -250,7 +250,7 @@ UI::EventReturn StoreScreen::OnRetry(UI::EventParams &e) { std::string StoreScreen::GetStoreJsonURL(std::string storePath) const { std::string path = storeBaseUrl + storePath; - if (path.back() != '/') + if (*path.rbegin() != '/') path += '/'; path += "index.json"; return path;