From 33cfc1656953e7a90992e374555da2c1c10ed120 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 24 Oct 2024 21:25:03 +0900 Subject: [PATCH] renderer: --shadow variable compiler warning --- src/renderer/tvgPaint.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/tvgPaint.h b/src/renderer/tvgPaint.h index 552d4689..e623c6ae 100644 --- a/src/renderer/tvgPaint.h +++ b/src/renderer/tvgPaint.h @@ -122,16 +122,16 @@ namespace tvg return tr.m; } - void clip(Paint* clipper) + void clip(Paint* clp) { if (this->clipper) { P(this->clipper)->unref(); - if (this->clipper != clipper && P(this->clipper)->refCnt == 0) { + if (this->clipper != clp && P(this->clipper)->refCnt == 0) { delete(this->clipper); } } - this->clipper = clipper; - if (!clipper) return; + this->clipper = clp; + if (!clp) return; P(clipper)->ref(); }