From 5f0dda8e9f2e35e1fdb5750089a70543478fa8a1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 10 Dec 2018 19:41:08 +0200 Subject: Add inline implementations of the C++ translate functions Change-Id: I749fa9d647bf55925fad862152b673ced312ee34 --- include/LibreOfficeKit/LibreOfficeKit.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/LibreOfficeKit/LibreOfficeKit.hxx') diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 93a0717ae588..923af7136b93 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -801,7 +801,10 @@ public: * @param pPrefixName the prefix passed to Translate::Create() * @param pBcp47LanguageTag the locale into which the string should be translated */ - char* translateGet( const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag ); + char* translateGet( const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag ) + { + return mpThis->pClass->translateGet( mpThis, pId, pPrefixName, pBcp47LanguageTag ); + } /** * Fetch translation for a string corresponding to a specific number of something. @@ -813,7 +816,10 @@ public: * @param pPrefixName the prefix passed to Translate::Create() * @param pBcp47LanguageTag the locale into which the string should be translated */ - char* translateNGet( const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag ); + char* translateNGet( const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag ) + { + return mpThis->pClass->translateNGet( mpThis, pId, n, pPrefixName, pBcp47LanguageTag ); + } }; /// Factory method to create a lok::Office instance. -- cgit