mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Use non-static member vars for SDL clipboard / primary selection buffers
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user