diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 03:08:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 03:08:37 +0300 |
commit | 39029943851dfc318fabb95357e00b81d2735547 (patch) | |
tree | dfd195791587c51e6dca166dda8a016a1760d3bf /src/gui/skilldialog.cpp | |
parent | 10f59701112130cf953a2af7ef4ae82d9d823fe6 (diff) | |
download | mv-39029943851dfc318fabb95357e00b81d2735547.tar.gz mv-39029943851dfc318fabb95357e00b81d2735547.tar.bz2 mv-39029943851dfc318fabb95357e00b81d2735547.tar.xz mv-39029943851dfc318fabb95357e00b81d2735547.zip |
Improve empty strings manipulation.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index aa60fedb1..219223240 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -407,7 +407,7 @@ void SkillDialog::loadSkills() SkillInfo *const skill = new SkillInfo; skill->id = 1; skill->data->name = _("basic"); - skill->data->description = ""; + skill->data->description.clear(); skill->data->dispName = _("basic, 1"); skill->data->shortName = "bas"; skill->data->setIcon(""); @@ -544,7 +544,7 @@ void SkillDialog::addSkill(const int id, const int level, const int range, skill->id = static_cast<short unsigned>(id); skill->data->name = "Unknown skill Id: " + toString(id); skill->data->dispName = "Unknown skill Id: " + toString(id); - skill->data->description = ""; + skill->data->description.clear(); skill->data->setIcon(""); skill->modifiable = modifiable; skill->visible = false; |