diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-12-03 00:11:26 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-12-04 00:15:39 +0100 |
commit | 8deb1305726966b3b583865dec1ba7ba1327d8cb (patch) | |
tree | 291627fbe0123dc35c015b1f398585f204afe8ea /src/ui/check.cpp | |
parent | dae8d8738908a65a4ee4ef14d88681e196825126 (diff) | |
download | colobot-8deb1305726966b3b583865dec1ba7ba1327d8cb.tar.gz colobot-8deb1305726966b3b583865dec1ba7ba1327d8cb.tar.bz2 colobot-8deb1305726966b3b583865dec1ba7ba1327d8cb.zip |
Changed char[] to std::string in restext
Experimental changes
Diffstat (limited to 'src/ui/check.cpp')
-rw-r--r-- | src/ui/check.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/check.cpp b/src/ui/check.cpp index 362c930..6a92554 100644 --- a/src/ui/check.cpp +++ b/src/ui/check.cpp @@ -47,16 +47,11 @@ CCheck::~CCheck() bool CCheck::Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) { - char name[100]; - char* p; - if ( eventType == EVENT_NULL ) eventType = GetUniqueEventType(); CControl::Create(pos, dim, icon, eventType); - GetResource(RES_EVENT, eventType, name); - p = strchr(name, '\\'); - if ( p != 0 ) *p = 0; + std::string name = GetResourceName(eventType); SetName(name); return true; |