From 0d8c6c4bc496536394ba62949724bc6b21c728bc Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 18 Feb 2024 18:44:37 +0100 Subject: [PATCH] cleanup: fix typos in comments Signed-off-by: Berthold Stoeger --- profile-widget/divepixmapcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile-widget/divepixmapcache.cpp b/profile-widget/divepixmapcache.cpp index 2dae2f723..e8f9ebe1c 100644 --- a/profile-widget/divepixmapcache.cpp +++ b/profile-widget/divepixmapcache.cpp @@ -40,7 +40,7 @@ DivePixmaps::DivePixmaps(int dpr) : dpr(dpr) gaschangeEANICD = createPixmap(":gaschange-ean-ICD-icon", sz_bigger); gaschangeEAN = createPixmap(":gaschange-ean-icon", sz_bigger); - // The transparen pixmap is a very obscure feature to enable tooltips without showing a pixmap. + // The transparent pixmap is a very obscure feature to enable tooltips without showing a pixmap. // See code in diveeventitem.cpp. This should probably be replaced by a different mechanism. QPixmap transparentPixmap(lrint(4 * dprf), lrint(20 * dprf)); transparentPixmap.fill(makeColor(1.0, 1.0, 1.0, 0.01)); @@ -52,7 +52,7 @@ static std::vector> cache; // Note that the idiomatic way would be to store std::weak_ptr<>s. // That would mean that the pixmaps are destroyed when the last user uses // them. We want to keep them around at least until the next caller! -// Therefore we also std::shared_ptr<>s. +// Therefore we also store std::shared_ptr<>s. std::shared_ptr getDivePixmaps(double dprIn) { using ptr = std::shared_ptr;