Oops, self -> this.

This commit is contained in:
Pietro Gagliardi 2018-03-13 22:06:33 -04:00
parent f25b8dce37
commit 5282951681
1 changed files with 12 additions and 12 deletions

View File

@ -127,17 +127,17 @@ public:
size_t ret = 0; size_t ret = 0;
double r, g, b, a; double r, g, b, a;
if (self->colorAttr != NULL) { if (this->colorAttr != NULL) {
uiAttributeColor(self->colorAttr, &r, &g, &b, &a); uiAttributeColor(this->colorAttr, &r, &g, &b, &a);
ret ^= doubleHash(r); ret ^= doubleHash(r);
ret ^= doubleHash(g); ret ^= doubleHash(g);
ret ^= doubleHash(b); ret ^= doubleHash(b);
ret ^= doubleHash(a); ret ^= doubleHash(a);
} }
if (self->underlineAttr != NULL) if (this->underlineAttr != NULL)
ret ^= (size_t) uiAttributeUnderline(self->underlineAttr); ret ^= (size_t) uiAttributeUnderline(this->underlineAttr);
if (self->underlineColorAttr != NULL) { if (this->underlineColorAttr != NULL) {
uiAttributeUnderlineColor(self->underlineColorAttr, &colorType, &r, &g, &b, &a); uiAttributeUnderlineColor(this->underlineColorAttr, &colorType, &r, &g, &b, &a);
ret ^= (size_t) colorType; ret ^= (size_t) colorType;
ret ^= doubleHash(r); ret ^= doubleHash(r);
ret ^= doubleHash(g); ret ^= doubleHash(g);
@ -163,14 +163,14 @@ public:
uiUnderlineColor colorType; uiUnderlineColor colorType;
dea = new drawingEffectsAttr; dea = new drawingEffectsAttr;
if (self->colorAttr != NULL) { if (this->colorAttr != NULL) {
uiAttributeColor(self->colorAttr, &r, &g, &b, &a); uiAttributeColor(this->colorAttr, &r, &g, &b, &a);
dea->addColor(r, g, b, a); dea->addColor(r, g, b, a);
} }
if (self->underlineAttr != NULL) if (this->underlineAttr != NULL)
dea->addUnderline(uiAttributeUnderline(self->underlineAttr)); dea->addUnderline(uiAttributeUnderline(this->underlineAttr));
if (self->underlineColorAttr != NULL) { if (this->underlineColorAttr != NULL) {
uiAttributeUnderlineColor(self->underlineColor, &colorType, &r, &g, &b, &a); uiAttributeUnderlineColor(this->underlineColor, &colorType, &r, &g, &b, &a);
// TODO see if Microsoft has any standard colors for these // TODO see if Microsoft has any standard colors for these
switch (colorType) { switch (colorType) {
case uiUnderlineColorSpelling: case uiUnderlineColorSpelling: