| 128 | } |
| 129 | |
| 130 | bool SizeParams::findReference (Widget *reference, int *x, int *y) |
| 131 | { |
| 132 | DBG_OBJ_ENTER ("resize", 0, "findReference", "%p", reference); |
| 133 | |
| 134 | bool found = false; |
| 135 | for (int i = 0; i < numPos && !found; i++) { |
| 136 | if (reference == references[i]) { |
| 137 | if (x) |
| 138 | *x = this->x[i]; |
| 139 | if (y) |
| 140 | *y = this->y[i]; |
| 141 | found = true; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | if (found) { |
| 146 | if (x && y) |
| 147 | DBG_OBJ_LEAVE_VAL ("true, x = %d, y = %d", *x, *y); |
| 148 | else if (x) |
| 149 | DBG_OBJ_LEAVE_VAL ("true, x = %d", *x); |
| 150 | else if (y) |
| 151 | DBG_OBJ_LEAVE_VAL ("true, y = %d", *y); |
| 152 | else |
| 153 | DBG_OBJ_LEAVE_VAL ("%s", "true"); |
| 154 | } else |
| 155 | DBG_OBJ_LEAVE_VAL ("%s", "false"); |
| 156 | |
| 157 | return found; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Compares two instances, but considers a change in the order of the reference |
no outgoing calls
no test coverage detected