From f70c7782ca637eef88499a5b83fabc754fbe9f38 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sun, 6 Mar 2022 19:06:02 +0100 Subject: [PATCH] Removed dangerous getter --- Src/BMP.cpp | 5 ----- Src/BMP.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/Src/BMP.cpp b/Src/BMP.cpp index 34f12c1..fb884ab 100644 --- a/Src/BMP.cpp +++ b/Src/BMP.cpp @@ -206,11 +206,6 @@ namespace Leonetienne::BmpPP { return isInitialized; } - std::vector &BMP::GetPixelbuffer() { - CHECK_IF_INITIALIZED - return pixelBuffer; - } - const std::vector &BMP::GetPixelbuffer() const { CHECK_IF_INITIALIZED return pixelBuffer; diff --git a/Src/BMP.h b/Src/BMP.h index 56df42f..0e75a5c 100644 --- a/Src/BMP.h +++ b/Src/BMP.h @@ -49,9 +49,6 @@ namespace Leonetienne::BmpPP { //! Will return a pointer to the raw pixel data [[nodiscard]] const std::uint8_t* data() const; - //! Will return the actual vector containing the raw pixel data - [[nodiscard]] std::vector& GetPixelbuffer(); - //! Will return the actual vector containing the raw pixel data [[nodiscard]] const std::vector& GetPixelbuffer() const;