Skip to content

Commit 63a4c33

Browse files
emmenlaupaceholder
authored andcommitted
src/ConnectionPainter.cpp: Renamed a shadowed variable
1 parent 2580993 commit 63a4c33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ConnectionPainter.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ drawNormalLine(QPainter * painter,
226226
{
227227
painter->setBrush(Qt::NoBrush);
228228

229-
QColor c = normalColorOut;
229+
QColor cOut = normalColorOut;
230230
if (selected)
231-
c = c.darker(200);
232-
p.setColor(c);
231+
cOut = cOut.darker(200);
232+
p.setColor(cOut);
233233
painter->setPen(p);
234234

235235
unsigned int const segments = 60;
@@ -241,11 +241,11 @@ drawNormalLine(QPainter * painter,
241241

242242
if (i == segments / 2)
243243
{
244-
QColor c = normalColorIn;
244+
QColor cIn = normalColorIn;
245245
if (selected)
246-
c = c.darker(200);
246+
cIn = cIn.darker(200);
247247

248-
p.setColor(c);
248+
p.setColor(cIn);
249249
painter->setPen(p);
250250
}
251251
painter->drawLine(cubic.pointAtPercent(ratioPrev),

0 commit comments

Comments
 (0)