aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/emu_window.h
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2014-10-23 21:17:01 -0700
committerGravatar archshift <admin@archshift.com>2014-10-23 21:44:10 -0700
commit7fa4dbd0c6e89aab762eaf29607a0a0ced660847 (patch)
tree693ec14d1c71c311e5d5d08b6d9f96711f7bced1 /src/common/emu_window.h
parentce8390ac03661ec2b16e48aeaca02ae8c9291ec5 (diff)
Removed uses of raw c-string manipulation functions.
Diffstat (limited to 'src/common/emu_window.h')
-rw-r--r--src/common/emu_window.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index 34cecb40..4d09acb8 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -6,7 +6,7 @@
#include "common/common.h"
#include "common/scm_rev.h"
-
+#include "common/string_util.h"
#include "common/key_map.h"
// Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL,
@@ -75,11 +75,11 @@ public:
}
protected:
- EmuWindow() : m_client_area_width(640), m_client_area_height(480) {
- char window_title[255];
- sprintf(window_title, "Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc);
- m_window_title = window_title;
- }
+ EmuWindow():
+ m_client_area_width(640),
+ m_client_area_height(480),
+ m_window_title(Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc))
+ {}
virtual ~EmuWindow() {}
std::string m_window_title; ///< Current window title, should be used by window impl.