diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-05 11:41:39 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-05 16:13:14 +0200 |
commit | dacde2c0394d33a04bc9ad929df394465c14b093 (patch) | |
tree | 6669725646ddcf2bbf467b9dfb8c9739fe05139f /include | |
parent | d33b3efa90bed4f317c872b1c2b83696cdedaa26 (diff) |
Revert "Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 instead"
This reverts commit 84662e9030a855c8db7cd40d9ce354b773d78c16.
Change-Id: I1cc98d3201390609ae3615baa8e92c926cdcde9a
Reviewed-on: https://gerrit.libreoffice.org/70294
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/codemaker/typemanager.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/codemaker/typemanager.hxx b/include/codemaker/typemanager.hxx index fcef7b59ac3e..3227393edb6e 100644 --- a/include/codemaker/typemanager.hxx +++ b/include/codemaker/typemanager.hxx @@ -62,6 +62,15 @@ private: std::vector< rtl::Reference< unoidl::Provider > > primaryProviders_; }; + +inline OString u2b(OUString const & s) { + return OUStringToOString(s, RTL_TEXTENCODING_UTF8); +} + +inline OUString b2u(OString const & s) { + return OStringToOUString(s, RTL_TEXTENCODING_UTF8); +} + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |