diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-04 12:27:22 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-04 20:36:11 +0200 |
commit | 84662e9030a855c8db7cd40d9ce354b773d78c16 (patch) | |
tree | 1c83da4320267f2bc17493e3b528ef388cb9c0ac /include/codemaker | |
parent | 3c6c56b107d71d5f4790be0b76299e8f215f88cc (diff) |
Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 instead
These helpers are used in code generator code; so any invalid UTF-8
or UTF-16 in the conversion is programmer's error which needs fixing.
Thus, the behavior of toUtf8/fromUtf8 which asserts the validity is
fine here.
Change-Id: I3004e233c9de59f8e348455f1f04d23e8c51ed3d
Reviewed-on: https://gerrit.libreoffice.org/70249
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/codemaker')
-rw-r--r-- | include/codemaker/typemanager.hxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/codemaker/typemanager.hxx b/include/codemaker/typemanager.hxx index 3227393edb6e..fcef7b59ac3e 100644 --- a/include/codemaker/typemanager.hxx +++ b/include/codemaker/typemanager.hxx @@ -62,15 +62,6 @@ 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: */ |