From d09dfd1bb5cf92e1fca720991614e7c5f82d38d7 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 22 Nov 2024 15:05:51 +0000 Subject: [PATCH] image: make non-copyable --- include/hyprgraphics/image/Image.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hyprgraphics/image/Image.hpp b/include/hyprgraphics/image/Image.hpp index 5cf0a1c..3925b7c 100644 --- a/include/hyprgraphics/image/Image.hpp +++ b/include/hyprgraphics/image/Image.hpp @@ -12,6 +12,10 @@ namespace Hyprgraphics { CImage(const std::string& path); ~CImage(); + CImage(const CImage&) = delete; + CImage& operator=(const CImage&) = delete; + + // bool success(); bool hasAlpha(); std::string getError();