summaryrefslogtreecommitdiff
path: root/src/resources/colordb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
commit593cccb16074fe9269dd2f278bd79859769eb1fd (patch)
treed8b3d93001021c59622ea88140dbbef8aee05013 /src/resources/colordb.h
parentb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (diff)
downloadplus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.gz
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.bz2
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.xz
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.zip
Improve constructors in some classes.
Diffstat (limited to 'src/resources/colordb.h')
-rw-r--r--src/resources/colordb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/colordb.h b/src/resources/colordb.h
index fd479d00a..4be6503fb 100644
--- a/src/resources/colordb.h
+++ b/src/resources/colordb.h
@@ -40,11 +40,11 @@ namespace ColorDB
{ }
ItemColor(const int id0, const std::string &name0,
- const std::string &color0)
+ const std::string &color0) :
+ id(id0),
+ name(name0),
+ color(color0)
{
- this->id = id0;
- this->name = name0;
- this->color = color0;
}
int id;