diff options
author | DS <ds.desour@proton.me> | 2023-03-26 14:13:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 14:13:58 +0200 |
commit | ba1cd19983f9a5d6824aa0fcf0714bc102699cc9 (patch) | |
tree | b1ff6f63dee334af4691173ce543097cb57d5215 /source/Irrlicht/COSOperator.h | |
parent | a67f3003de693998ab3ec9864383d7155175c353 (diff) | |
download | irrlicht-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.h | 11 |
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
|