1.getName的返回值中不应该使用this关键字

Signed-off-by: zhoulisheng1 <zhoulisheng1@huawei.com>
This commit is contained in:
zhoulisheng1 2023-05-05 18:01:20 +08:00
parent 231f4cc6c3
commit 77bd473b9f
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export class CropSquareTransformation implements BaseTransform<PixelMap> {
private static TAG: string = "CropSquareTransformation";
getName() {
return CropSquareTransformation.TAG + ";CropSquareTransformation:" + this;
return CropSquareTransformation.TAG;
}
transform(buf: ArrayBuffer, request: RequestOption, func?: AsyncTransform<PixelMap>) {

View File

@ -24,7 +24,7 @@ import { GPUImageGrayscaleFilter } from '@ohos/gpu_transform'
export class GrayscaleTransformation implements BaseTransform<PixelMap> {
getName() {
return "GrayscaleTransformation:" + this;
return "GrayscaleTransformation";
}
async transform(buf: ArrayBuffer, request: RequestOption, func?: AsyncTransform<PixelMap>) {