odk/examples/cpp/DocumentLoader/DocumentLoader.cxx | 2 +- odk/examples/cpp/DocumentLoader/Makefile | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 4a8aed2940040e8b8f0db0f06cb06a757cd06a9a Author: Hossein <hoss...@libreoffice.org> AuthorDate: Sun Oct 24 16:03:58 2021 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Oct 25 09:05:23 2021 +0200 Cleanup DocumentLoader C++ SDK example * Remove unncessary C-style cast from DocumentLoader.cxx * Remove trailing whitespaces from Makefile Change-Id: I7cff589353d3e40301cf45ce0a76e0c75beddf13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124115 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx index 6925fef788b1..38b661e030cf 100644 --- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx +++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx @@ -62,7 +62,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { OUString sConnectionString("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"); - sal_Int32 nCount = (sal_Int32)rtl_getAppCommandArgCount(); + sal_Int32 nCount = rtl_getAppCommandArgCount(); if (nCount < 1) { diff --git a/odk/examples/cpp/DocumentLoader/Makefile b/odk/examples/cpp/DocumentLoader/Makefile index 812d133324f6..56e370bec41c 100644 --- a/odk/examples/cpp/DocumentLoader/Makefile +++ b/odk/examples/cpp/DocumentLoader/Makefile @@ -2,7 +2,7 @@ # # The Contents of this file are made available subject to the terms of # the BSD license. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # All rights reserved. # @@ -29,7 +29,7 @@ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +# #************************************************************************** # Builds the C++ DocumentLoader example of the SDK. @@ -81,7 +81,7 @@ endif CppDocumentLoaderExample : $(OUT_BIN)/DocumentLoader$(EXE_EXT) @echo -------------------------------------------------------------------------------- @echo The example loads the "$(QM)test.odt$(QM)" document in the DocumentLoader example directory. - @echo If you want to load your own document, please use: + @echo If you want to load your own document, please use: @echo $(SQM) $(SQM)DocumentLoader -env:URE_MORE_TYPES="$(QM)<fileurl_office_types_rdb>$(QM)" "$(QM)filename$(QM)" [connection_url] @echo - @echo Use the following command to execute the example! @@ -89,8 +89,8 @@ CppDocumentLoaderExample : $(OUT_BIN)/DocumentLoader$(EXE_EXT) @echo $(MAKE) DocumentLoader.run @echo - @echo NOTE: This example does not use the new UNO bootstrap mechanism, it uses still a socket - @echo $(SQM) $(SQM)connection. The example use the defaultBootstrap_InitialComponentContext method and provides - @echo $(SQM) $(SQM)the additional office types via the UNO environment variable -env:URE_MORE_TYPES=... + @echo $(SQM) $(SQM)connection. The example use the defaultBootstrap_InitialComponentContext method and provides + @echo $(SQM) $(SQM)the additional office types via the UNO environment variable -env:URE_MORE_TYPES=... @echo $(SQM) $(SQM)Before you can run this example you have to start your office in listening mode. @echo - @echo $(SQM) $(SQM)soffice "$(QM)--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager$(QM)"