~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/widgets/widgetgroup.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-07-11 10:09:41 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130711100941-f0rwuvcwgl8ulqo8
Tags: 1.3.7.7.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    addWidgetListener(this);
38
38
}
39
39
 
40
 
void WidgetGroup::addButton(std::string tag)
 
40
void WidgetGroup::addButton(const std::string &tag)
41
41
{
42
42
    addButton(tag, tag);
43
43
}
44
44
 
45
 
void WidgetGroup::addButton(std::string text, std::string tag)
 
45
void WidgetGroup::addButton(const std::string &text, const std::string &tag)
46
46
{
47
47
    if (text.empty() || tag.empty())
48
48
        return;