From 0dcedf62b92a8d8e76680ca9d93455a3d1720a82 Mon Sep 17 00:00:00 2001 From: X512 Date: Thu, 10 Dec 2020 04:17:57 +0900 Subject: [PATCH] HaikuDepot: remove unneeded .Get() calls Dereference operator is defined in BReference. Change-Id: Iccba8ad4a29e354aa9cdbf2e1a5ddbc9687af677 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3489 Reviewed-by: Adrien Destugues --- src/apps/haikudepot/textview/Bullet.cpp | 2 +- src/apps/haikudepot/textview/CharacterStyle.cpp | 2 +- src/apps/haikudepot/textview/ParagraphStyle.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/haikudepot/textview/Bullet.cpp b/src/apps/haikudepot/textview/Bullet.cpp index 44cf89440d..a0924c8e03 100644 --- a/src/apps/haikudepot/textview/Bullet.cpp +++ b/src/apps/haikudepot/textview/Bullet.cpp @@ -51,7 +51,7 @@ Bullet::operator==(const Bullet& other) const return true; if (fBulletData.IsSet() && other.fBulletData.IsSet()) - return *fBulletData.Get() == *other.fBulletData.Get(); + return *fBulletData == *other.fBulletData; return false; } diff --git a/src/apps/haikudepot/textview/CharacterStyle.cpp b/src/apps/haikudepot/textview/CharacterStyle.cpp index d944ffe4eb..731318db14 100644 --- a/src/apps/haikudepot/textview/CharacterStyle.cpp +++ b/src/apps/haikudepot/textview/CharacterStyle.cpp @@ -41,7 +41,7 @@ CharacterStyle::operator==(const CharacterStyle& other) const return true; if (fStyleData.IsSet() && other.fStyleData.IsSet()) - return *fStyleData.Get() == *other.fStyleData.Get(); + return *fStyleData == *other.fStyleData; return false; } diff --git a/src/apps/haikudepot/textview/ParagraphStyle.cpp b/src/apps/haikudepot/textview/ParagraphStyle.cpp index fdad94923f..205546de83 100644 --- a/src/apps/haikudepot/textview/ParagraphStyle.cpp +++ b/src/apps/haikudepot/textview/ParagraphStyle.cpp @@ -41,7 +41,7 @@ ParagraphStyle::operator==(const ParagraphStyle& other) const return true; if (fStyleData.IsSet() && other.fStyleData.IsSet()) - return *fStyleData.Get() == *other.fStyleData.Get(); + return *fStyleData == *other.fStyleData; return false; }