Date:2010-05-02 20:02:21 (7 years 6 months ago)
Author:Lars C.
Commit:d4490ba85ce4027c74763f02c2afbeea326eae1b
Message:remove redundant assignments

Files: src/iconbutton.cpp (1 diff)
src/imagedialog.cpp (1 diff)
src/link.cpp (1 diff)
src/linkapp.cpp (1 diff)
src/menusettingbool.cpp (2 diffs)
src/menusettingdir.cpp (1 diff)
src/menusettingfile.cpp (1 diff)
src/menusettingimage.cpp (1 diff)
src/menusettingint.cpp (1 diff)
src/menusettingmultistring.cpp (1 diff)
src/menusettingrgba.cpp (1 diff)
src/menusettingstring.cpp (1 diff)

Change Details

src/iconbutton.cpp
66using namespace fastdelegate;
77
88IconButton::IconButton(GMenu2X *gmenu2x, const string &icon, const string &label) : Button(gmenu2x) {
9    this->gmenu2x = gmenu2x;
109    this->icon = icon;
1110    labelPosition = IconButton::DISP_RIGHT;
1211    labelMargin = 2;
src/imagedialog.cpp
3232using namespace std;
3333
3434ImageDialog::ImageDialog(GMenu2X *gmenu2x, const string &text, const string &filter, const string &file) : FileDialog(gmenu2x, text, filter, file) {
35    this->gmenu2x = gmenu2x;
3635    this->text = text;
3736    this->filter = filter;
3837    setPath("/card");
src/link.cpp
2727using namespace fastdelegate;
2828
2929Link::Link(GMenu2X *gmenu2x) : Button(gmenu2x, true) {
30    this->gmenu2x = gmenu2x;
3130    action = MakeDelegate(this, &Link::run);
3231    edited = false;
3332    iconPath = gmenu2x->sc.getSkinFilePath("icons/generic.png");
src/linkapp.cpp
3232
3333LinkApp::LinkApp(GMenu2X *gmenu2x, const char* linkfile)
3434    : Link(gmenu2x) {
35    this->gmenu2x = gmenu2x;
3635    manual = "";
3736    file = linkfile;
3837    wrapper = false;
src/menusettingbool.cpp
2626
2727MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, int *value)
2828    : MenuSetting(gmenu2x,name,description) {
29    this->gmenu2x = gmenu2x;
3029    _ivalue = value;
3130    _value = NULL;
3231    originalValue = *value != 0;
...... 
3837
3938MenuSettingBool::MenuSettingBool(GMenu2X *gmenu2x, const string &name, const string &description, bool *value)
4039    : MenuSetting(gmenu2x,name,description) {
41    this->gmenu2x = gmenu2x;
4240    _value = value;
4341    _ivalue = NULL;
4442    originalValue = *value;
src/menusettingdir.cpp
2626
2727MenuSettingDir::MenuSettingDir(GMenu2X *gmenu2x, const string &name, const string &description, string *value)
2828    : MenuSetting(gmenu2x,name,description) {
29    this->gmenu2x = gmenu2x;
3029    _value = value;
3130    originalValue = *value;
3231
src/menusettingfile.cpp
2626
2727MenuSettingFile::MenuSettingFile(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter)
2828    : MenuSetting(gmenu2x,name,description) {
29    this->gmenu2x = gmenu2x;
3029    this->filter = filter;
3130    _value = value;
3231    originalValue = *value;
src/menusettingimage.cpp
2525
2626MenuSettingImage::MenuSettingImage(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &filter)
2727    : MenuSettingFile(gmenu2x,name,description,value,filter) {
28    this->gmenu2x = gmenu2x;
2928    this->filter = filter;
3029    _value = value;
3130    originalValue = *value;
src/menusettingint.cpp
2626
2727MenuSettingInt::MenuSettingInt(GMenu2X *gmenu2x, const string &name, const string &description, int *value, int min, int max)
2828    : MenuSetting(gmenu2x,name,description) {
29    this->gmenu2x = gmenu2x;
3029    _value = value;
3130    originalValue = *value;
3231    this->min = min;
src/menusettingmultistring.cpp
2525
2626MenuSettingMultiString::MenuSettingMultiString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, vector<string> *choices)
2727    : MenuSetting(gmenu2x,name,description) {
28    this->gmenu2x = gmenu2x;
2928    this->choices = choices;
3029    this->value = value;
3130    originalValue = *value;
src/menusettingrgba.cpp
2626MenuSettingRGBA::MenuSettingRGBA(GMenu2X *gmenu2x, const string &name, const string &description, RGBAColor *value)
2727    : MenuSetting(gmenu2x,name,description) {
2828    selPart = 0;
29    this->gmenu2x = gmenu2x;
3029    _value = value;
3130    originalValue = *value;
3231    this->setR(this->value().r);
src/menusettingstring.cpp
2626
2727MenuSettingString::MenuSettingString(GMenu2X *gmenu2x, const string &name, const string &description, string *value, const string &diagTitle, const string &diagIcon)
2828    : MenuSetting(gmenu2x,name,description) {
29    this->gmenu2x = gmenu2x;
3029    _value = value;
3130    originalValue = *value;
3231    this->diagTitle = diagTitle;

Archive Download the corresponding diff file



interactive