diff options
| author | 2014-10-23 21:17:01 -0700 | |
|---|---|---|
| committer | 2014-10-23 21:44:10 -0700 | |
| commit | 7fa4dbd0c6e89aab762eaf29607a0a0ced660847 (patch) | |
| tree | 693ec14d1c71c311e5d5d08b6d9f96711f7bced1 /src/common/emu_window.h | |
| parent | Merge pull request #133 from archshift/sdmc-enabled (diff) | |
| download | yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.gz yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.xz yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.zip | |
Removed uses of raw c-string manipulation functions.
Diffstat (limited to 'src/common/emu_window.h')
| -rw-r--r-- | src/common/emu_window.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 34cecb40b..4d09acb8b 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common.h" | 7 | #include "common/common.h" |
| 8 | #include "common/scm_rev.h" | 8 | #include "common/scm_rev.h" |
| 9 | 9 | #include "common/string_util.h" | |
| 10 | #include "common/key_map.h" | 10 | #include "common/key_map.h" |
| 11 | 11 | ||
| 12 | // Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL, | 12 | // Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL, |
| @@ -75,11 +75,11 @@ public: | |||
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | protected: | 77 | protected: |
| 78 | EmuWindow() : m_client_area_width(640), m_client_area_height(480) { | 78 | EmuWindow(): |
| 79 | char window_title[255]; | 79 | m_client_area_width(640), |
| 80 | sprintf(window_title, "Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); | 80 | m_client_area_height(480), |
| 81 | m_window_title = window_title; | 81 | m_window_title(Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc)) |
| 82 | } | 82 | {} |
| 83 | virtual ~EmuWindow() {} | 83 | virtual ~EmuWindow() {} |
| 84 | 84 | ||
| 85 | std::string m_window_title; ///< Current window title, should be used by window impl. | 85 | std::string m_window_title; ///< Current window title, should be used by window impl. |