diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-05-06 21:17:51 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-05-06 21:19:09 +0300 |
commit | 968091e1fcd1805073a60a3f7c271009bae41bce (patch) | |
tree | 88ac8ac2a207b6824f6be9cf23e97a6b33edd68c /include/LibreOfficeKit | |
parent | 713a8f3f53028b89f0836f86923370515a210585 (diff) |
Enable passing in a UserInstallation also in the C++ API
Change-Id: I0549a58bc6cebdfd9d69c078b4a6e8a891182019
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 01403480096c..bd8832a8a0d0 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -284,9 +284,9 @@ public: }; /// Factory method to create a lok::Office instance. -inline Office* lok_cpp_init(const char* pInstallPath) +inline Office* lok_cpp_init(const char* pInstallPath, const char* pUserProfilePath = NULL) { - LibreOfficeKit* pThis = lok_init(pInstallPath); + LibreOfficeKit* pThis = lok_init_2(pInstallPath, pUserProfilePath); if (pThis == NULL || pThis->pClass->nSize == 0) return NULL; return new ::lok::Office(pThis); |