diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-07-20 10:44:16 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-07-20 11:28:51 +0200 |
commit | ca49f93839198c7218a7b9f1bf9e0984f6725f45 (patch) | |
tree | b5e46c9b7b01d5f5c93e1691385fe02312698e60 /libreofficekit | |
parent | Make the iOS UnitTest project compile again (diff) | |
download | core-ca49f93839198c7218a7b9f1bf9e0984f6725f45.tar.gz core-ca49f93839198c7218a7b9f1bf9e0984f6725f45.zip |
We apparently need to call Application::Quit() on iOS now
(This file is included in ios/UnitTest/UnitTest/ViewController.mm.)
Change-Id: I79170785db43d9bdb3aca6f500161862eb6a111b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99028
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/tilebench/tilebench.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx index 2a8142de9a7c..e51b738d583b 100644 --- a/libreofficekit/qa/tilebench/tilebench.cxx +++ b/libreofficekit/qa/tilebench/tilebench.cxx @@ -22,6 +22,10 @@ #include <LibreOfficeKit/LibreOfficeKitInit.h> #include <LibreOfficeKit/LibreOfficeKit.hxx> +#ifdef IOS +#include <vcl/svapp.hxx> +#endif + #include <boost/property_tree/json_parser.hpp> #include <boost/optional.hpp> @@ -651,6 +655,9 @@ int main( int argc, char* argv[] ) return help ("unknown parameter"); } +#ifdef IOS + Application::Quit(); +#endif aTimes.emplace_back("destroy document"); pDocument.reset(); aTimes.emplace_back(); |