From c3b81d00ae3b5a3279369e991e7624adb5852944 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 17 Nov 2023 12:40:01 -0330 Subject: [PATCH] Minor fixes for Xcode. --- src/common/PJoystickHandler.cxx | 4 ++-- src/emucore/OSystem.cxx | 2 +- src/os/macos/OSystemMACOS.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/PJoystickHandler.cxx b/src/common/PJoystickHandler.cxx index 513b5fe7a..c115dc3ee 100644 --- a/src/common/PJoystickHandler.cxx +++ b/src/common/PJoystickHandler.cxx @@ -1108,14 +1108,14 @@ ostream& operator<<(ostream& os, const PhysicalJoystickHandler& jh) os << "---------------------------------------------------------\n" << "joy database:\n"; for(const auto& [_name, _info]: jh.myDatabase) - os << _name << '\n' << _info << '\n\n'; + os << _name << '\n' << _info << "\n\n"; os << "---------------------\n" << "joy active:\n"; for(const auto& [_id, _joyptr]: jh.mySticks) os << _id << ": " << *_joyptr << '\n'; os << "---------------------------------------------------------" - << '\n\n\n'; + << "\n\n\n"; return os; } diff --git a/src/emucore/OSystem.cxx b/src/emucore/OSystem.cxx index a9a3a4a01..5fccfbef8 100644 --- a/src/emucore/OSystem.cxx +++ b/src/emucore/OSystem.cxx @@ -125,7 +125,7 @@ bool OSystem::initialize(const Settings::Options& options) ostringstream buf; buf << "Stella " << STELLA_VERSION << '\n' << " Features: " << myFeatures << '\n' - << " " << myBuildInfo << '\n\n' + << " " << myBuildInfo << "\n\n" << "Base directory: '" << myBaseDir.getShortPath() << "'\n" << "State directory: '" diff --git a/src/os/macos/OSystemMACOS.cxx b/src/os/macos/OSystemMACOS.cxx index a9264e5a7..6d8451c56 100644 --- a/src/os/macos/OSystemMACOS.cxx +++ b/src/os/macos/OSystemMACOS.cxx @@ -32,6 +32,6 @@ void OSystemMACOS::getBaseDirectories(string& basedir, string& homedir, basedir = FSNode(usedir).getPath(); #endif - FSNode desktop("~/Desktop/"); + const FSNode desktop("~/Desktop/"); homedir = desktop.isDirectory() ? desktop.getShortPath() : "~/"; }