summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2021-10-24 16:03:58 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-25 09:05:23 +0200
commit4a8aed2940040e8b8f0db0f06cb06a757cd06a9a (patch)
tree4e2fcd491282aa5f3b0700f97e9387e7459fd8cf /odk
parent39bffe9ba612ce5fc8806a739ae7d960915ac31b (diff)
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.kaganski@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/DocumentLoader/DocumentLoader.cxx2
-rw-r--r--odk/examples/cpp/DocumentLoader/Makefile10
2 files changed, 6 insertions, 6 deletions
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)"