aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/COSOperator.h
diff options
context:
space:
mode:
authorDS <ds.desour@proton.me>2023-03-26 14:13:58 +0200
committerGitHub <noreply@github.com>2023-03-26 14:13:58 +0200
commitba1cd19983f9a5d6824aa0fcf0714bc102699cc9 (patch)
treeb1ff6f63dee334af4691173ce543097cb57d5215 /source/Irrlicht/COSOperator.h
parenta67f3003de693998ab3ec9864383d7155175c353 (diff)
downloadirrlicht-ba1cd19983f9a5d6824aa0fcf0714bc102699cc9.tar.xz
Use non-static member vars for SDL clipboard / primary selection buffers
Diffstat (limited to 'source/Irrlicht/COSOperator.h')
-rw-r--r--source/Irrlicht/COSOperator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Irrlicht/COSOperator.h b/source/Irrlicht/COSOperator.h
index 6510579..941dacc 100644
--- a/source/Irrlicht/COSOperator.h
+++ b/source/Irrlicht/COSOperator.h
@@ -23,6 +23,11 @@ public:
#endif
COSOperator(const core::stringc& osversion);
+ ~COSOperator();
+
+ COSOperator(const COSOperator &) = delete;
+ COSOperator &operator=(const COSOperator &) = delete;
+
//! returns the current operation system version as string.
const core::stringc& getOperatingSystemVersion() const override;
@@ -56,6 +61,12 @@ private:
mutable core::stringc ClipboardBuf;
#endif
+#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
+ // These need to be freed with SDL_free
+ mutable char *ClipboardSelectionText = nullptr;
+ mutable char *PrimarySelectionText = nullptr;
+#endif
+
};
} // end namespace