Use non-static member vars for SDL clipboard / primary selection buffers

This commit is contained in:
DS
2023-03-26 14:13:58 +02:00
committed by GitHub
parent a67f3003de
commit ba1cd19983
2 changed files with 30 additions and 14 deletions

View File

@ -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