Kaydet (Commit) f24f4f92 authored tarafından Andrzej Hunt's avatar Andrzej Hunt Kaydeden (comit) Michael Meeks

Complete LibreOfficeKit C++ renaming.

Change-Id: Ice611cf5913051346a3a0c0b00ed35a35a0dfe3c
üst 8b8311a8
...@@ -87,9 +87,7 @@ public: ...@@ -87,9 +87,7 @@ public:
} }
}; };
} inline Office* lok_cpp_init(const char* pInstallPath)
inline ::lok::Office* lo_cpp_init(const char* pInstallPath)
{ {
LibreOfficeKit* pThis = lok_init(pInstallPath); LibreOfficeKit* pThis = lok_init(pInstallPath);
if (pThis == NULL || pThis->nSize == 0) if (pThis == NULL || pThis->nSize == 0)
...@@ -97,5 +95,6 @@ inline ::lok::Office* lo_cpp_init(const char* pInstallPath) ...@@ -97,5 +95,6 @@ inline ::lok::Office* lo_cpp_init(const char* pInstallPath)
return new ::lok::Office(pThis); return new ::lok::Office(pThis);
} }
}
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -46,7 +46,7 @@ int main (int argc, char **argv) ...@@ -46,7 +46,7 @@ int main (int argc, char **argv)
return 1; return 1;
} }
Office *pOffice = lo_cpp_init( argv[1] ); Office *pOffice = lok_cpp_init( argv[1] );
if( !pOffice ) if( !pOffice )
{ {
fprintf( stderr, "Failed to initialize\n" ); fprintf( stderr, "Failed to initialize\n" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment