games/freesynd: Fix build with clang 16

This commit is contained in:
Guido Falsi 2023-06-28 22:44:15 +02:00
parent 46888d1f66
commit 3416b961ce
4 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,21 @@
--- src/app.h.orig 2016-05-01 20:07:33 UTC
+++ src/app.h
@@ -153,13 +153,13 @@ class App : public Singleton < App > { (private)
private:
bool running_;
/*! A structure to hold general application informations.*/
- std::auto_ptr<AppContext> context_;
+ std::unique_ptr<AppContext> context_;
/*! A structure to hold player informations.*/
- std::auto_ptr<GameSession> session_;
+ std::unique_ptr<GameSession> session_;
/*! Controls the game logic. */
- std::auto_ptr<GameController> game_ctlr_;
- std::auto_ptr<Screen> screen_;
- std::auto_ptr<System> system_;
+ std::unique_ptr<GameController> game_ctlr_;
+ std::unique_ptr<Screen> screen_;
+ std::unique_ptr<System> system_;
std::string iniPath_;

View file

@ -0,0 +1,11 @@
--- src/dump.cpp.orig 2016-05-01 20:07:33 UTC
+++ src/dump.cpp
@@ -584,7 +584,7 @@ int main(int argc, char *argv[]) {
}
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
- std::auto_ptr<EditorApp> app(new EditorApp(disable_sound));
+ std::unique_ptr<EditorApp> app(new EditorApp(disable_sound));
if (app->initialize(iniPath)) {
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application completed"))

View file

@ -0,0 +1,19 @@
--- src/editor/editorapp.h.orig 2016-05-01 20:07:33 UTC
+++ src/editor/editorapp.h
@@ -122,12 +122,12 @@ class EditorApp : public Singleton < EditorApp > { (pr
private:
bool running_;
- std::auto_ptr<Screen> screen_;
- std::auto_ptr<System> system_;
+ std::unique_ptr<Screen> screen_;
+ std::unique_ptr<System> system_;
/*! A structure to hold general application informations.*/
- std::auto_ptr<AppContext> context_;
+ std::unique_ptr<AppContext> context_;
/*! Controls the game logic. */
- std::auto_ptr<GameController> game_ctlr_;
+ std::unique_ptr<GameController> game_ctlr_;
std::string iniPath_;

View file

@ -0,0 +1,11 @@
--- src/freesynd.cpp.orig 2016-05-01 20:07:33 UTC
+++ src/freesynd.cpp
@@ -229,7 +229,7 @@ int main(int argc, char *argv[]) {
}
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
- std::auto_ptr<App> app(new App(disable_sound));
+ std::unique_ptr<App> app(new App(disable_sound));
if (app->initialize(iniPath)) {
// setting the cheat codes