diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-10 11:42:13 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-11 13:44:56 +0100 |
commit | a533f986f95560aadb16d6edcff77312d9329e3c (patch) | |
tree | 018bd66378644c6f7fc2c395f51df9357bfb0817 /smoketest | |
parent | cd76b9996c48fed238314e7e7445fb4395542784 (diff) |
Upgrade LibreOfficeKit C++ API.
Change-Id: If263b8fc748f67a1ed423c0f3f7cd465cf533993
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/libtest.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index ca1f89cc25b0..c6211a9ca6e6 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -15,6 +15,8 @@ #include <sys/time.h> #include <LibreOfficeKit/LibreOfficeKit.hxx> +using namespace ::lok; + long getTimeMS() { struct timeval t; @@ -44,7 +46,7 @@ int main (int argc, char **argv) return 1; } - LibLibreOffice *pOffice = lo_cpp_init( argv[1] ); + Office *pOffice = lo_cpp_init( argv[1] ); if( !pOffice ) { fprintf( stderr, "Failed to initialize\n" ); @@ -63,7 +65,7 @@ int main (int argc, char **argv) start = end; fprintf( stderr, "start to load document '%s'\n", argv[2] ); - LODocument *pDocument = pOffice->documentLoad( argv[2] ); + Document *pDocument = pOffice->documentLoad( argv[2] ); if( !pDocument ) { char *pError = pOffice->getError(); |