1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 13:29:42 +02:00

remove redundant assignments

This commit is contained in:
Lars-Peter Clausen 2010-05-02 20:02:21 +02:00
parent 7fd1ab032a
commit d4490ba85c
12 changed files with 0 additions and 13 deletions

View File

@ -6,7 +6,6 @@ using namespace std;
using namespace fastdelegate; using namespace fastdelegate;
IconButton::IconButton(GMenu2X *gmenu2x, const string &icon, const string &label) : Button(gmenu2x) { IconButton::IconButton(GMenu2X *gmenu2x, const string &icon, const string &label) : Button(gmenu2x) {
this->gmenu2x = gmenu2x;
this->icon = icon; this->icon = icon;
labelPosition = IconButton::DISP_RIGHT; labelPosition = IconButton::DISP_RIGHT;
labelMargin = 2; labelMargin = 2;

View File

@ -32,7 +32,6 @@
using namespace std; using namespace std;
ImageDialog::ImageDialog(GMenu2X *gmenu2x, const string &text, const string &filter, const string &file) : FileDialog(gmenu2x, text, filter, file) { ImageDialog::ImageDialog(GMenu2X *gmenu2x, const string &text, const string &filter, const string &file) : FileDialog(gmenu2x, text, filter, file) {
this->gmenu2x = gmenu2x;
this->text = text; this->text = text;
this->filter = filter; this->filter = filter;
setPath("/card"); setPath("/card");

View File

@ -27,7 +27,6 @@ using namespace std;
using namespace fastdelegate; using namespace fastdelegate;
Link::Link(GMenu2X *gmenu2x) : Button(gmenu2x, true) { Link::Link(GMenu2X *gmenu2x) : Button(gmenu2x, true) {
this->gmenu2x = gmenu2x;
action = MakeDelegate(this, &Link::run); action = MakeDelegate(this, &Link::run);
edited = false; edited = false;
iconPath = gmenu2x->sc.getSkinFilePath("icons/generic.png"); iconPath = gmenu2x->sc.getSkinFilePath("icons/generic.png");

View File

@ -32,7 +32,6 @@ using namespace std;
LinkApp::LinkApp(GMenu2X *gmenu2x, const char* linkfile) LinkApp::LinkApp(GMenu2X *gmenu2x, const char* linkfile)
: Link(gmenu2x) { : Link(gmenu2x) {
this->gmenu2x = gmenu2x;
manual = ""; manual = "";
file = linkfile; file = linkfile;
wrapper = false; wrapper = false;

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, int *value) MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, int *value)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
_ivalue = value; _ivalue = value;
_value = NULL; _value = NULL;
originalValue = *value != 0; originalValue = *value != 0;
@ -38,7 +37,6 @@ MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const str
MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, bool *value) MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, bool *value)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
_value = value; _value = value;
_ivalue = NULL; _ivalue = NULL;
originalValue = *value; originalValue = *value;

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingDir::MenuSettingDir(GMenu2X *gmenu2x, const string &name, const string &description, string *value) MenuSettingDir::MenuSettingDir(GMenu2X *gmenu2x, const string &name, const string &description, string *value)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
_value = value; _value = value;
originalValue = *value; originalValue = *value;

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingFile::MenuSettingFile(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter) MenuSettingFile::MenuSettingFile(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
this->filter = filter; this->filter = filter;
_value = value; _value = value;
originalValue = *value; originalValue = *value;

View File

@ -25,7 +25,6 @@ using namespace std;
MenuSettingImage::MenuSettingImage(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter) MenuSettingImage::MenuSettingImage(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter)
: MenuSettingFile(gmenu2x,name,description,value,filter) { : MenuSettingFile(gmenu2x,name,description,value,filter) {
this->gmenu2x = gmenu2x;
this->filter = filter; this->filter = filter;
_value = value; _value = value;
originalValue = *value; originalValue = *value;

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingInt::MenuSettingInt(GMenu2X *gmenu2x, const string &name, const string &description, int *value, int min, int max) MenuSettingInt::MenuSettingInt(GMenu2X *gmenu2x, const string &name, const string &description, int *value, int min, int max)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
_value = value; _value = value;
originalValue = *value; originalValue = *value;
this->min = min; this->min = min;

View File

@ -25,7 +25,6 @@ using namespace fastdelegate;
MenuSettingMultiString::MenuSettingMultiString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, vector<string> *choices) MenuSettingMultiString::MenuSettingMultiString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, vector<string> *choices)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
this->choices = choices; this->choices = choices;
this->value = value; this->value = value;
originalValue = *value; originalValue = *value;

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingRGBA::MenuSettingRGBA(GMenu2X *gmenu2x, const string &name, const string &description, RGBAColor *value) MenuSettingRGBA::MenuSettingRGBA(GMenu2X *gmenu2x, const string &name, const string &description, RGBAColor *value)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
selPart = 0; selPart = 0;
this->gmenu2x = gmenu2x;
_value = value; _value = value;
originalValue = *value; originalValue = *value;
this->setR(this->value().r); this->setR(this->value().r);

View File

@ -26,7 +26,6 @@ using namespace fastdelegate;
MenuSettingString::MenuSettingString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &diagTitle, const string &diagIcon) MenuSettingString::MenuSettingString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &diagTitle, const string &diagIcon)
: MenuSetting(gmenu2x,name,description) { : MenuSetting(gmenu2x,name,description) {
this->gmenu2x = gmenu2x;
_value = value; _value = value;
originalValue = *value; originalValue = *value;
this->diagTitle = diagTitle; this->diagTitle = diagTitle;