diff options
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 4190072690b7..d02f5b43c086 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -642,6 +642,16 @@ public: void connect_jump_page(const Link<const OString&, bool>& rLink) { m_aJumpPageHdl = rLink; } }; +inline OUString toId(const void* pValue) +{ + return OUString::number(reinterpret_cast<const sal_uInt64>(pValue)); +} + +template <typename T> T fromId(const OUString& rValue) +{ + return reinterpret_cast<T>(rValue.toUInt64()); +} + struct VCL_DLLPUBLIC ComboBoxEntry { OUString sString; |